summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Loader.php2
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;
}