diff --git a/htdocs/compta/bank/rappro.php b/htdocs/compta/bank/rappro.php index 3884891fb21..a2db7be0a93 100644 --- a/htdocs/compta/bank/rappro.php +++ b/htdocs/compta/bank/rappro.php @@ -100,7 +100,7 @@ if ($action == 'del') { $bankline=new AccountLine($db); - if ($bankline->fetch($_GET["rowid"]) > 1) { + if ($bankline->fetch($_GET["rowid"]) > 0) { $result = $bankline->delete($user); if ($result < 0) { dol_print_error($db, $bankline->error);