fetch does not take 4 arguments, only 3, and we don't need more than 2

This commit is contained in:
Jon Bendtsen 2024-03-16 00:14:59 +01:00
parent 8d1d1666bf
commit eb92e5a678

View file

@ -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");