Use an other test
This commit is contained in:
parent
15e1d3b456
commit
9a666b265f
@ -3016,9 +3016,11 @@ class CommandeFournisseurLigne extends CommonOrderLine
|
|||||||
$result = $this->db->query($sql);
|
$result = $this->db->query($sql);
|
||||||
if ($result)
|
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->rowid = $objp->rowid;
|
||||||
$this->id = $objp->rowid;
|
$this->id = $objp->rowid;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user