fix: php phan/stan
This commit is contained in:
parent
73ac786cbc
commit
d720fa80ff
1 changed files with 3 additions and 1 deletions
|
|
@ -287,8 +287,10 @@ if (empty($reshook)) {
|
|||
$nbtotalofrecords = $objforcount->nbtotalofrecords;
|
||||
} else {
|
||||
dol_print_error($db);
|
||||
$error++;
|
||||
}
|
||||
if (!isset($nbtotalofrecords) || $nbtotalofrecords > 0) {
|
||||
|
||||
if (isset($nbtotalofrecords) && $nbtotalofrecords > 0) {
|
||||
setEventMessages($langs->trans("ErrorFieldExist", $langs->transnoentitiesnoconv("ApiToken")), null, 'errors');
|
||||
$action = 'create';
|
||||
$error++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue