Browse Source

refactor the arr class to fix a few bugs.

Taylor Otwell 13 years ago
parent
commit
81a89604f9
1 changed files with 2 additions and 0 deletions
  1. 2 0
      system/arr.php

+ 2 - 0
system/arr.php

@@ -46,6 +46,8 @@ class Arr {
 	 */
 	public static function set(&$array, $key, $value)
 	{
+		if (is_null($key)) return $array = $value;
+
 		$keys = explode('.', $key);
 
 		while (count($keys) > 1)