Fix syntax error

This commit is contained in:
Laurent Destailleur 2020-11-28 13:52:52 +01:00
parent 6afe5919b9
commit 2989ff50fa

View File

@ -2411,9 +2411,8 @@ if ($action == 'create')
if ($action != 'editline')
{
// Validate
if (($object->statut == Propal::STATUS_DRAFT && $object->total_ttc >= 0 && count($object->lines) 0) || ($object->statut == Propal::STATUS_DRAFT && !empty($conf->global->PROPAL_ENABLE_NEGATIVE) && count($object->lines) > 0))
if (($object->statut == Propal::STATUS_DRAFT && $object->total_ttc >= 0 && count($object->lines) > 0)
|| ($object->statut == Propal::STATUS_DRAFT && !empty($conf->global->PROPAL_ENABLE_NEGATIVE) && count($object->lines) > 0))
{
if ($usercanvalidate)
{