Again better check
authorRoland Häder <roland@mxchange.org>
Sat, 29 Sep 2012 13:17:12 +0000 (13:17 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 29 Sep 2012 13:17:12 +0000 (13:17 +0000)
inc/extensions-functions.php

index 50730054498a68c0318f48d61cc875ae510109ea..90d1a92ab02034f61b85c472b1005520a8ae3667 100644 (file)
@@ -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