diff options
author | Andrey Andreev <narf@bofh.bg> | 2013-03-01 15:30:21 +0100 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2013-03-01 15:30:21 +0100 |
commit | c7db6dc5be8de658fe6ec56e4ba342f34387302e (patch) | |
tree | 2f3535eccbd0293c0c6325d32dca0630aa7d2379 /system/core | |
parent | d327c797027d4ccf3bb624d7f4edd10997e372ac (diff) | |
parent | a5e0ea8131e16752ab369d776f585b130b526f85 (diff) |
Merge pull request #2287 from vlakoff/develop
Fix this use case: load->vars->('foobar', '')
Diffstat (limited to 'system/core')
-rw-r--r-- | system/core/Loader.php | 2 |
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); } |