diff --git a/htdocs/compta/facture/class/facture.class.php b/htdocs/compta/facture/class/facture.class.php index b5e18948b38..502ec7a74da 100644 --- a/htdocs/compta/facture/class/facture.class.php +++ b/htdocs/compta/facture/class/facture.class.php @@ -1783,7 +1783,7 @@ class Facture extends CommonInvoice // Test to avoid invoice deletion (allowed if draft) $test = $this->is_erasable(); - if ($test <= 0) return $test; + if ($test <= 0) return 0; $error=0;