Fix warnings

This commit is contained in:
Laurent Destailleur 2023-05-02 03:38:57 +02:00
parent 2d3a8fcfb7
commit 5d23fd0956

View File

@ -645,7 +645,7 @@ class Thirdparties extends DolibarrApi
throw new RestException(503, 'Error when retrieve category list : '.$categories->error);
}
if (is_numeric($arrayofcateg) && $arrayofcateg == 0) { // To fix a return of 0 instead of empty array of method getListForItem
if (is_numeric($arrayofcateg) && $arrayofcateg >= 0) { // To fix a return of 0 instead of empty array of method getListForItem
return array();
}
@ -696,7 +696,7 @@ class Thirdparties extends DolibarrApi
* @param int $id Id of thirdparty
* @param int $category_id Id of category
*
* @return mixed
* @return Object|void
*
* @url DELETE {id}/categories/{category_id}
*/
@ -1791,7 +1791,7 @@ class Thirdparties extends DolibarrApi
* Clean sensible object datas
*
* @param Object $object Object to clean
* @return array|mixed Object with cleaned properties
* @return Object Object with cleaned properties
*/
protected function _cleanObjectDatas($object)
{