X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions-functions.php;h=53619443ea04258c5da03a41596399a1f92d5847;hb=14caafbca5a4e94c7a22cec65c3a825243114d70;hp=fb21ed0c4996bab1c5f167ff63474fb187e4b168;hpb=2a00e34a7e92afb388dbf479c699e163b0972e62;p=mailer.git diff --git a/inc/extensions-functions.php b/inc/extensions-functions.php index fb21ed0c49..53619443ea 100644 --- a/inc/extensions-functions.php +++ b/inc/extensions-functions.php @@ -682,7 +682,7 @@ function updateExtension ($ext_name, $ext_ver, $dry_run = false) { initExtensionSqls(); // Check if version is updated - //* DEBUG: */ debugOutput(getCurrentExtensionName() . '/' . $ext_name . ':' . getThisExtensionVersion() . '/' . $ext_ver . '/' . intval(is_array($history))); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, getCurrentExtensionName() . '/' . $ext_name . ':' . getThisExtensionVersion() . '/' . $ext_ver . '/' . intval(is_array($history))); if (((getThisExtensionVersion() != $ext_ver) || (isExtensionDryRun())) && (is_array($history))) { // Search for starting point (-1 for making 0.0 -> 0.0.0 switch work) $start = -1; @@ -1312,10 +1312,11 @@ function isExtensionUpdateRunning ($ext_name) { // Walk through whole array foreach ($GLOBALS['ext_running_updates'] as $ext1=>$depends) { // Is it found? - if ($ext1 == $ext_name) { + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',depends=' . print_r($depends, true)); + if (($ext1 == $ext_name) || (in_array($ext_name, $depends))) { // Found $isRunning = true; - logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning)); + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'ext1=' . $ext1 . ',ext_name=' . $ext_name . ',isRunning=' . intval($isRunning)); break; } // END - if } // END - foreach