Skip to content

Commit

Permalink
Fix php8 change, '' != 0 since php8
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilienR-easya committed Sep 17, 2024
1 parent 1a81d7f commit d606166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/fourn/commande/dispatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
}

// We ask to move a qty
if (GETPOST($qty) != 0) {
if (!empty(GETPOST($qty)) && GETPOST($qty) != 0) {
if (!(GETPOST($ent, 'int') > 0)) {
dol_syslog('No dispatch for line '.$key.' as no warehouse was chosen.');
$text = $langs->transnoentities('Warehouse').', '.$langs->transnoentities('Line').' '.($numline);
Expand Down

0 comments on commit d606166

Please sign in to comment.