FIX: Remove always-true error checks in mysql dump export (backport of #39339 to 24.0) (#39444)

This commit is contained in:
Jam Balaya 2026-08-13 09:51:25 +09:00 committed by GitHub
parent 21104e9204
commit 99f0e545fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -143,17 +143,15 @@ if ($what == 'mysql') {
}
}
if (!$errormsg && $cmddump) {
if ($cmddump) {
dolibarr_set_const($db, 'SYSTEMTOOLS_MYSQLDUMP', $cmddump, 'chaine', 0, '', 0);
}
if (!$errormsg) {
$result = $utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, $lowmemorydump);
$result = $utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, $lowmemorydump);
$errormsg = $utils->error;
$_SESSION["commandbackuplastdone"] = $utils->result['commandbackuplastdone'];
$_SESSION["commandbackuptorun"] = $utils->result['commandbackuptorun'];
}
$errormsg = $utils->error;
$_SESSION["commandbackuplastdone"] = $utils->result['commandbackuplastdone'];
$_SESSION["commandbackuptorun"] = $utils->result['commandbackuptorun'];
}
// MYSQL NO BIN