Merge pull request #12699 from frederic34/patch-13

The variable $query seems to be never defined
This commit is contained in:
Laurent Destailleur 2019-12-14 13:44:03 +01:00 committed by GitHub
commit cc52fcb294
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)