From 5d23fd0956a7cf7030576290e02d08b670691a7d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 2 May 2023 03:38:57 +0200 Subject: [PATCH] Fix warnings --- htdocs/societe/class/api_thirdparties.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index c991db7e7ac..d8eb407ef27 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -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) {