diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 410713d7c12..9a3319c8138 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -4445,7 +4445,7 @@ class OrderLine extends CommonOrderLine dol_syslog("OrderLine::delete", LOG_DEBUG); $resql = $this->db->query($sql); - if ($resql) { + if (!$resql) { $this->error = $this->db->lasterror(); $error++; }