summaryrefslogtreecommitdiffstats
path: root/system/libraries/Loader.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r--system/libraries/Loader.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index f76146ffd..38d7c35a8 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -697,7 +697,6 @@ 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;
@@ -712,8 +711,8 @@ class CI_Loader {
// Safety: Was the class already loaded by a previous call?
if (in_array($fp, $this->_ci_classes))
{
- $is_duplicate = TRUE;
- continue;
+ log_message('debug', $class." class already loaded.Ê Second attempt ignored.");
+ return;
}
include($fp);