diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-11 13:33:50 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-01-11 13:33:50 +0000 |
commit | b4b26e48b09f36c8b533412a1b19f1f23a447a9b (patch) | |
tree | 065ba2d78e0a647be5e8fe7908c4417dfe4e1015 /frontends/php/include/actions.inc.php | |
parent | 5fbc202c9ec11aac9d0ad9bf2f469a05deda8083 (diff) | |
download | zabbix-b4b26e48b09f36c8b533412a1b19f1f23a447a9b.tar.gz zabbix-b4b26e48b09f36c8b533412a1b19f1f23a447a9b.tar.xz zabbix-b4b26e48b09f36c8b533412a1b19f1f23a447a9b.zip |
- added HTML classes into PHP framework (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@2514 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/actions.inc.php')
-rw-r--r-- | frontends/php/include/actions.inc.php | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/frontends/php/include/actions.inc.php b/frontends/php/include/actions.inc.php index afa34a76..e2180fce 100644 --- a/frontends/php/include/actions.inc.php +++ b/frontends/php/include/actions.inc.php @@ -60,7 +60,7 @@ # Update Action - function update_action($actionid, $userid, $delay, $subject, $message, $recipient, $usrgrpid, $maxrepeats, $repeatdelay) + function update_action($actionid, $id, $delay, $subject, $message, $recipient, $maxrepeats, $repeatdelay) { // if(!check_right_on_trigger("U",$triggerid)) // { @@ -68,15 +68,6 @@ // return 0; // } - if($recipient == RECIPIENT_TYPE_USER) - { - $id = $userid; - } - else - { - $id = $usrgrpid; - } - $sql="update actions set userid=$id,delay=$delay,nextcheck=0,subject='$subject',message='$message',recipient=$recipient,maxrepeats=$maxrepeats, repeatdelay=$repeatdelay where actionid=$actionid"; $result=DBexecute($sql); return $result; @@ -254,7 +245,7 @@ { $host=get_host_by_hostid($row["hostid"]); $message=str_replace("{".$host_template["host"].":", "{".$host["host"].":", $action["message"]); - update_action($row3["actionid"], $row2["triggerid"], $action["userid"], $action["good"], $action["delay"], $action["subject"], $message, $action["scope"], $action["severity"], $action["recipient"], $action["userid"], $action["maxrepeats"],$action["repeatdelay"]); + update_action($row3["actionid"], $row2["triggerid"], $action["userid"], $action["good"], $action["delay"], $action["subject"], $message, $action["scope"], $action["severity"], $action["recipient"], $action["maxrepeats"],$action["repeatdelay"]); } } |