mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-08 10:03:00 +01:00
Qual: Fix phan notices (admin) (#33483)
* Qual: Fix phan notices (accountancy, adherents) * Qual: Fix phan notices (admin) --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
|
||||
* Copyright (C) 2021 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2025 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -147,7 +148,7 @@ if ($what == 'mysql') {
|
||||
}
|
||||
|
||||
if (!$errormsg) {
|
||||
$utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, $lowmemorydump);
|
||||
$utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, (int) $lowmemorydump);
|
||||
$errormsg = $utils->error;
|
||||
$_SESSION["commandbackuplastdone"] = $utils->result['commandbackuplastdone'];
|
||||
$_SESSION["commandbackuptorun"] = $utils->result['commandbackuptorun'];
|
||||
@@ -156,7 +157,7 @@ if ($what == 'mysql') {
|
||||
|
||||
// MYSQL NO BIN
|
||||
if ($what == 'mysqlnobin') {
|
||||
$utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, $lowmemorydump);
|
||||
$utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, (int) $lowmemorydump);
|
||||
|
||||
$errormsg = $utils->error;
|
||||
$_SESSION["commandbackuplastdone"] = $utils->result['commandbackuplastdone'];
|
||||
@@ -186,7 +187,7 @@ if ($what == 'postgresql') {
|
||||
}
|
||||
|
||||
if (!$errormsg) {
|
||||
$utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, $lowmemorydump);
|
||||
$utils->dumpDatabase(GETPOST('compression', 'alpha'), $what, 0, $file, 0, 0, (int) $lowmemorydump);
|
||||
$errormsg = $utils->error;
|
||||
$_SESSION["commandbackuplastdone"] = $utils->result['commandbackuplastdone'];
|
||||
$_SESSION["commandbackuptorun"] = $utils->result['commandbackuptorun'];
|
||||
|
||||
Reference in New Issue
Block a user