Skip to content

Commit

Permalink
Merge pull request #12699 from frederic34/patch-13
Browse files Browse the repository at this point in the history
The variable $query seems to be never defined
  • Loading branch information
eldy committed Dec 14, 2019
2 parents 8fbaae3 + 2136499 commit cc52fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/fourn/class/fournisseur.commande.class.php
Expand Up @@ -2892,9 +2892,9 @@ public function getInputMethod()
$resql = $db->query($sql);
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);
if ($string == $obj->code)
Expand Down

0 comments on commit cc52fcb

Please sign in to comment.