From 35e568f7154234e88f293d99159d1ee2a52c93d7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 5 Oct 2016 21:50:39 +0200 Subject: [PATCH] Fix php error --- htdocs/accountancy/bookkeeping/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/bookkeeping/card.php b/htdocs/accountancy/bookkeeping/card.php index 12ce56fc0a6..ff39933bb3e 100644 --- a/htdocs/accountancy/bookkeeping/card.php +++ b/htdocs/accountancy/bookkeeping/card.php @@ -170,7 +170,7 @@ else if ($action == "confirm_create") { $book = new BookKeeping($db); - if (empty(GETPOST('next_num_mvt'))) + if (! GETPOST('next_num_mvt')) { setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("NumPiece")), null, 'errors'); $error++; -- GitLab