diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index ddd1f7cd306..e9fb3dd1b43 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -1103,7 +1103,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');