diff --git a/htdocs/expensereport/class/expensereport.class.php b/htdocs/expensereport/class/expensereport.class.php index d3904027f41..da62de7ecfc 100644 --- a/htdocs/expensereport/class/expensereport.class.php +++ b/htdocs/expensereport/class/expensereport.class.php @@ -499,7 +499,7 @@ class ExpenseReport extends CommonObject // Clear fields $this->fk_user_creat = $user->id; $this->fk_user_author = $fk_user_author; // Note fk_user_author is not the 'author' but the guy the expense report is for. - $this->fk_user_valid = ''; + $this->fk_user_valid = 0; $this->date_create = ''; $this->date_creation = ''; $this->date_validation = ''; @@ -1653,7 +1653,7 @@ class ExpenseReport extends CommonObject /** * Return next reference of expense report not already used * - * @return string free ref + * @return string|int<-2,-1> free ref, or <0 if error */ public function getNextNumRef() {