summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@bofh.bg>2013-03-01 15:30:21 +0100
committerAndrey Andreev <narf@bofh.bg>2013-03-01 15:30:21 +0100
commitc7db6dc5be8de658fe6ec56e4ba342f34387302e (patch)
tree2f3535eccbd0293c0c6325d32dca0630aa7d2379 /system
parentd327c797027d4ccf3bb624d7f4edd10997e372ac (diff)
parenta5e0ea8131e16752ab369d776f585b130b526f85 (diff)
Merge pull request #2287 from vlakoff/develop
Fix this use case: load->vars->('foobar', '')
Diffstat (limited to 'system')
-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 6e5b58ba7..d4e63231c 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -459,7 +459,7 @@ class CI_Loader {
*/
public function vars($vars = array(), $val = '')
{
- if ($val !== '' && is_string($vars))
+ if (is_string($vars))
{
$vars = array($vars => $val);
}