From 81a89604f98a90aa8fe736c0192048f55eeaf6d4 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 15 Aug 2011 15:19:14 -0500 Subject: [PATCH] refactor the arr class to fix a few bugs. --- system/arr.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/arr.php b/system/arr.php index 0e952c70..c69e5707 100644 --- a/system/arr.php +++ b/system/arr.php @@ -46,6 +46,8 @@ public static function get($array, $key, $default = null) */ public static function set(&$array, $key, $value) { + if (is_null($key)) return $array = $value; + $keys = explode('.', $key); while (count($keys) > 1)