diff --git a/libraries/cms/application/helper.php b/libraries/cms/application/helper.php index e79350e9174e0..00f9622d0cb0a 100644 --- a/libraries/cms/application/helper.php +++ b/libraries/cms/application/helper.php @@ -22,7 +22,7 @@ class JApplicationHelper * @var array * @since 1.6 */ - protected static $_clients = null; + protected static $_clients = array(); /** * Return the name of the request component [main component] @@ -110,8 +110,8 @@ public static function stringURLSafe($string) */ public static function getClientInfo($id = null, $byName = false) { - // Only create the array if it does not exist - if (self::$_clients === null) + // Only create the array if it is empty + if (empty(self::$_clients)) { $obj = new stdClass;