diff --git a/system/config.php b/system/config.php index 0f8912e8..459b1e6f 100644 --- a/system/config.php +++ b/system/config.php @@ -79,9 +79,7 @@ class Config { if ($module !== 'application') $key = substr($key, strpos($key, ':') + 2); - $segments = explode('.', $key); - - $key = (count($segments) > 1) ? implode('.', array_slice($segments, 1)) : null; + $key = (count($segments = explode('.', $key)) > 1) ? implode('.', array_slice($segments, 1)) : null; return array($module, $segments[0], $key); }