From 2e8082536def80abd6b28868304c515d75e49698 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sat, 29 Sep 2012 13:17:12 +0000 Subject: [PATCH] Again better check --- inc/extensions-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index 5073005449..90d1a92ab0 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -1275,7 +1275,7 @@ function addExtensionDependency ($updateDepends) { array_push($GLOBALS['ext_update_depends'][getCurrentExtensionName()], $updateDepends); // Init array - if (!isset($GLOBALS['ext_running_updates'][getCurrentExtensionName()])) { + if ((!isset($GLOBALS['ext_running_updates'][getCurrentExtensionName()])) || (!is_array($GLOBALS['ext_running_updates'][getCurrentExtensionName()]))) { $GLOBALS['ext_running_updates'][getCurrentExtensionName()] = array(); } // END - if -- 2.39.5