Fix Specimen warning in supplier admin when database has no products (#31867)
This commit is contained in:
parent
348981a419
commit
cd6ed63768
1 changed files with 1 additions and 1 deletions
|
|
@ -2938,7 +2938,7 @@ class CommandeFournisseur extends CommonOrder
|
|||
$sql .= $this->db->order("rowid", "ASC");
|
||||
$sql .= $this->db->plimit(1);
|
||||
$resql = $this->db->query($sql);
|
||||
if ($resql) {
|
||||
if ($resql && $this->db->num_rows($resql)) {
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
$prodid = $obj->rowid;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue