summaryrefslogtreecommitdiffstats
path: root/system/core
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-06-04 21:41:53 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-06-04 21:41:53 +0200
commit10d78f61399dd647ada0afaa43e5e9ec48d55e82 (patch)
treecf68ba0c3872ec68368d4cf10a47ef16adf8e90b /system/core
parentc2bb1073e476a3928913b384cd5f7bcad6c21b5b (diff)
Loader was too specific about === "", some cases were NULL.
Signed-off-by: Phil Sturgeon <email@philsturgeon.co.uk>
Diffstat (limited to 'system/core')
-rw-r--r--system/core/Loader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 66a9e7faa..09e948714 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -261,7 +261,7 @@ class CI_Loader {
$model = substr($model, $last_slash);
}
- if ($name === '')
+ if (empty($name))
{
$name = $model;
}