From eb92e5a6787af0c74c50b239a527e4a674462c5c Mon Sep 17 00:00:00 2001 From: Jon Bendtsen Date: Sat, 16 Mar 2024 00:14:59 +0100 Subject: [PATCH] fetch does not take 4 arguments, only 3, and we don't need more than 2 --- htdocs/societe/class/api_thirdparties.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php index 20e91fd4696..f8b732e4b5e 100644 --- a/htdocs/societe/class/api_thirdparties.class.php +++ b/htdocs/societe/class/api_thirdparties.class.php @@ -1197,7 +1197,7 @@ class Thirdparties extends DolibarrApi $notification = new Notify($this->db); // @phan-suppress-next-line PhanPluginSuspiciousParamPosition - $notification->fetch($notification_id, $id, -1, ''); + $notification->fetch($notification_id, $id); if ($notification->socid != $id) { throw new RestException(403, "Not allowed due to bad consistency of input data");