There seems to be an error in the action code:
the function "add_action" inserts as:
$sql="insert into actions (userid,delay,nextcheck,subject,message,recipient, maxrepeats,repeatdelay) values ($id,$delay,0,'".zbx_ads($subject)."','".zbx_ads($ message)."',$recipient,$maxrepeats,$repeatdelay)";
Where $id is supposed to be a userid, but in code for "add_action_to_linked_hosts"
add_action is called with:
add_action($row2["triggerid"], $action["userid"], $action["good"],
$action["delay"], $action["subject"], $message, $action["scope"],
$action["severity"], $action["recipient"], $action["maxrepeats"],
$action["repeatdelay"]);
Which seems to be deprecated code, using the old format of actions.
Regards,
Simon
the function "add_action" inserts as:
$sql="insert into actions (userid,delay,nextcheck,subject,message,recipient, maxrepeats,repeatdelay) values ($id,$delay,0,'".zbx_ads($subject)."','".zbx_ads($ message)."',$recipient,$maxrepeats,$repeatdelay)";
Where $id is supposed to be a userid, but in code for "add_action_to_linked_hosts"
add_action is called with:
add_action($row2["triggerid"], $action["userid"], $action["good"],
$action["delay"], $action["subject"], $message, $action["scope"],
$action["severity"], $action["recipient"], $action["maxrepeats"],
$action["repeatdelay"]);
Which seems to be deprecated code, using the old format of actions.
Regards,
Simon