diff --git a/htdocs/projet/fiche.php b/htdocs/projet/fiche.php index 30068a8a286..05aea54648a 100644 --- a/htdocs/projet/fiche.php +++ b/htdocs/projet/fiche.php @@ -269,7 +269,7 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer) $defaultref = $modProject->getNextValue($soc,$project); } - if ($defaultref <= 0) $defaultref=''; + if (is_numeric($defaultref) && $defaultref <= 0) $defaultref=''; // Ref print '