Merge pull request #27360 from frederic34/patch-20
Method should return int|null but return statement is missing.
This commit is contained in:
commit
7cf20b9e8f
1 changed files with 2 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class FormCategory extends Form
|
|||
* @param string $selected Id category pre-selection
|
||||
* @param string $htmlname Name of HTML field
|
||||
* @param int $showempty Add an empty field
|
||||
* @return integer|null
|
||||
* @return int|null
|
||||
*/
|
||||
public function selectProductCategory($selected = 0, $htmlname = 'product_category_id', $showempty = 0)
|
||||
{
|
||||
|
|
@ -123,6 +123,7 @@ class FormCategory extends Form
|
|||
return $num_rows;
|
||||
} else {
|
||||
dol_print_error($this->db);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue