Browse Source

Use array_key_exists in Arr::get instead of isset.

Taylor Otwell 13 years ago
parent
commit
614811bb40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/arr.php

+ 1 - 1
system/arr.php

@@ -22,7 +22,7 @@ class Arr {
 
 		foreach (explode('.', $key) as $segment)
 		{
-			if ( ! isset($array[$segment]))
+			if ( ! array_key_exists($segment, $array))
 			{
 				return is_callable($default) ? call_user_func($default) : $default;
 			}