From: Roland Häder Date: Sat, 29 Sep 2012 13:17:12 +0000 (+0000) Subject: Again better check X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2e8082536def80abd6b28868304c515d75e49698;p=mailer.git Again better check --- 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