fix a warning in webhook trigger (#31850)
* fix a warnign in webhook trigger * better fix --------- Co-authored-by: Hystepik <lmarcouiller@nltechno.com> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
3705d4a7ae
commit
f80dd66ecc
1 changed files with 3 additions and 0 deletions
|
|
@ -76,6 +76,9 @@ class InterfaceWebhookTriggers extends DolibarrTriggers
|
|||
$errors = 0;
|
||||
$static_object = new Target($this->db);
|
||||
$target_url = $static_object->fetchAll();
|
||||
if (!is_array($target_url)) {
|
||||
return 0;
|
||||
}
|
||||
foreach ($target_url as $key => $tmpobject) {
|
||||
$actionarray = explode(",", $tmpobject->trigger_codes);
|
||||
if ($tmpobject->status == Target::STATUS_VALIDATED && is_array($actionarray) && in_array($action, $actionarray)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue