Use an other test

This commit is contained in:
John BOTELLA 2019-01-28 11:53:19 +01:00
parent 15e1d3b456
commit 9a666b265f

View File

@ -3016,9 +3016,11 @@ class CommandeFournisseurLigne extends CommonOrderLine
$result = $this->db->query($sql);
if ($result)
{
if ($this->db->num_rows($result))
$objp = $this->db->fetch_object($result);
if (!empty($objp))
{
$objp = $this->db->fetch_object($result);
$this->rowid = $objp->rowid;
$this->id = $objp->rowid;