The variable $query seems to be never defined

This commit is contained in:
Frédéric FRANCE 2019-12-12 20:11:18 +01:00 committed by GitHub
parent 95141550fa
commit 2136499c67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2892,9 +2892,9 @@ class CommandeFournisseur extends CommonOrder
$resql = $db->query($sql); $resql = $db->query($sql);
if ($resql) if ($resql)
{ {
if ($db->num_rows($query)) if ($db->num_rows($resql))
{ {
$obj = $db->fetch_object($query); $obj = $db->fetch_object($resql);
$string = $langs->trans($obj->code); $string = $langs->trans($obj->code);
if ($string == $obj->code) if ($string == $obj->code)