]> git.mxchange.org Git - mailer.git/commitdiff
Another fix
authorRoland Häder <roland@mxchange.org>
Sat, 29 Sep 2012 13:15:58 +0000 (13:15 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 29 Sep 2012 13:15:58 +0000 (13:15 +0000)
inc/extensions-functions.php

index 6c07db542b0dfec763e9eefe7104352e7bc4bb17..50730054498a68c0318f48d61cc875ae510109ea 100644 (file)
@@ -1274,6 +1274,11 @@ function addExtensionDependency ($updateDepends) {
        // Add it to the list of extension update depencies map
        array_push($GLOBALS['ext_update_depends'][getCurrentExtensionName()], $updateDepends);
 
+       // Init array
+       if (!isset($GLOBALS['ext_running_updates'][getCurrentExtensionName()])) {
+               $GLOBALS['ext_running_updates'][getCurrentExtensionName()] = array();
+       } // END - if
+
        // Remember it in the list of running updates
        array_push($GLOBALS['ext_running_updates'][getCurrentExtensionName()], $updateDepends);
        //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'currName=' . getCurrentExtensionName() . '/' . $updateDepends . ',extensionMode=' . getExtensionMode() . ' - EXIT!');