fetch does not take 4 arguments, only 3, and we don't need more than 2
This commit is contained in:
parent
8d1d1666bf
commit
eb92e5a678
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue