Error management

This commit is contained in:
Laurent Destailleur 2018-02-08 14:25:44 +01:00
parent e2cabd9be7
commit 9c954de081
2 changed files with 4 additions and 4 deletions

View File

@ -1091,7 +1091,7 @@ class ExpenseReport extends CommonObject
{ {
$num = $this->ref; $num = $this->ref;
} }
if (empty($num)) return -1; if (empty($num) || $num < 0) return -1;
$this->newref = $num; $this->newref = $num;