fixed an undefined var
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index aede38d..e634c38 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -697,6 +697,7 @@
}
// 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 @@
// 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;
}