From de38744d7833814605a88bd252b5a2464819ba1f Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 15 Aug 2011 15:12:02 -0500 Subject: [PATCH] Continuing to refactor the configuration class. --- system/config.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/system/config.php b/system/config.php index e504a3f9..e742b22c 100644 --- a/system/config.php +++ b/system/config.php @@ -62,7 +62,14 @@ public static function set($key, $value) static::load($module, $file); - (is_null($key)) ? static::$items[$module][$file] = $value : Arr::set(static::$items[$module][$file], $key, $value); + if (is_null($key)) + { + static::$items[$module][$file] = $value; + } + else + { + Arr::set(static::$items[$module][$file], $key, $value); + } } /**