From a5e0ea8131e16752ab369d776f585b130b526f85 Mon Sep 17 00:00:00 2001 From: vlakoff Date: Wed, 27 Feb 2013 18:17:35 +0100 Subject: Fix this use case: load->vars->('foobar', '') Previously, only the other syntax was working: load->vars->(array('foobar' => '')) --- system/core/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'system/core/Loader.php') 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); } -- cgit v1.2.3-24-g4f1b