From db5c61d50c1c61a39a60385d5ee29706fefde698 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 2 Aug 2011 13:40:25 -0500 Subject: [PATCH] Added code to return the entire array to Arr::dot. --- system/arr.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/arr.php b/system/arr.php index 622f75dd..5c2338b8 100644 --- a/system/arr.php +++ b/system/arr.php @@ -37,6 +37,11 @@ class Arr { */ public static function dot($array, $key, $default = null) { + if (is_null($key)) + { + return $array; + } + foreach (explode('.', $key) as $segment) { if ( ! isset($array[$segment]))