Skip to content

Commit

Permalink
Merge pull request bcit-ci#594 from ktomk/patch-8
Browse files Browse the repository at this point in the history
CI_Loader::driver() processes empty library. Fixed.
  • Loading branch information
Derek Jones committed Oct 18, 2011
2 parents 30cc1be + 6a15b2d commit 825e970
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/core/Loader.php
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,11 @@ public function driver($library = '', $params = NULL, $object_name = NULL)
require BASEPATH.'libraries/Driver.php';
}

if ($library == '')
{
return FALSE;
}

// We can save the loader some time since Drivers will *always* be in a subfolder,
// and typically identically named to the library
if ( ! strpos($library, '/'))
Expand Down

0 comments on commit 825e970

Please sign in to comment.