diff options
author | Derek Allard <derek.allard@ellislab.com> | 2007-02-14 23:44:36 +0100 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2007-02-14 23:44:36 +0100 |
commit | 4dde0de7576872c075171c75363dfad7e5528952 (patch) | |
tree | 462449b8b89877aca18c2792e043609d144b0147 /system/libraries | |
parent | b3e1c6a0d53cd0a09e0f2f674c9095acf8a5c41e (diff) |
fixed an undefined var
Diffstat (limited to 'system/libraries')
-rw-r--r-- | system/libraries/Loader.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php index aede38d7a..e634c3885 100644 --- a/system/libraries/Loader.php +++ b/system/libraries/Loader.php @@ -697,6 +697,7 @@ class CI_Loader { }
// Lets search for the requested library file and load it.
+ $is_duplicate = FALSE;
for ($i = 1; $i < 3; $i++)
{
$path = ($i % 2) ? APPPATH : BASEPATH;
@@ -711,6 +712,7 @@ class CI_Loader { // Safety: Was the class already loaded by a previous call?
if (in_array($fp, $this->_ci_classes))
{
+ $is_duplicate = TRUE;
log_message('debug', $class." class already loaded. Second attempt ignored.");
return;
}
|