diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index a40e2d2ed08..34f6486e417 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1120,7 +1120,7 @@ if (empty($reshook)) $qty = GETPOST('qty', 'int'); if (empty($qty)) $qty=1; - if (! $fk_c_type_fees > 0) + if (! ($fk_c_type_fees > 0)) { $error++; setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("Type")), null, 'errors');