diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index b5e18948b38bb..502ec7a74da36 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1783,7 +1783,7 @@ function delete($user, $notrigger=0, $idwarehouse=-1) // Test to avoid invoice deletion (allowed if draft) $test = $this->is_erasable(); - if ($test <= 0) return $test; + if ($test <= 0) return 0; $error=0;