Merge pull request #19031 from hregis/fix_wrong_array_key_value

FIX wrong array key value
This commit is contained in:
Laurent Destailleur 2021-10-20 13:46:07 +02:00 committed by GitHub
commit 66437c472a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -530,7 +530,7 @@ if (!GETPOST('action', 'aZ09') || preg_match('/upgrade/i', GETPOST('action', 'aZ
// Can call a dedicated external upgrade process
if (!$error) {
$parameters = array('versionfrom'=>$versionfrom, 'versionto='.$versionto);
$parameters = array('versionfrom' => $versionfrom, 'versionto' => $versionto);
$object = new stdClass();
$action = "upgrade";
$reshook = $hookmanager->executeHooks('doUpgrade2', $parameters, $object, $action); // Note that $action and $object may have been modified by some hooks