diff options
author | vlakoff <vlakoff@gmail.com> | 2013-02-27 18:17:35 +0100 |
---|---|---|
committer | vlakoff <vlakoff@gmail.com> | 2013-02-27 18:26:45 +0100 |
commit | a5e0ea8131e16752ab369d776f585b130b526f85 (patch) | |
tree | ba18215d568a4b18d2e2e2b45e22b53221fb1aa4 /system | |
parent | af493e6699ee548331a4557dba9162ec8b789fbf (diff) |
Fix this use case: load->vars->('foobar', '')
Previously, only the other syntax was working: load->vars->(array('foobar' => ''))
Diffstat (limited to 'system')
-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); } |