diff options
| author | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-09-14 11:06:27 +0000 |
|---|---|---|
| committer | alex <alex@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2006-09-14 11:06:27 +0000 |
| commit | 8755f9643aba3cffc5320321618fbe8e7b78b73b (patch) | |
| tree | 61f79790fee2222b1d3c5c3cd3faf09c9de8f168 /frontends/php/include/acknow.inc.php | |
| parent | 220a18752f8fefdd0af90ccd17cc045c2e6ae1a6 (diff) | |
Initial integration of distributed monitoring.
Changes 3196:HEAD of branches/distributed
git-svn-id: svn://svn.zabbix.com/trunk@3306 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/acknow.inc.php')
| -rw-r--r-- | frontends/php/include/acknow.inc.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/frontends/php/include/acknow.inc.php b/frontends/php/include/acknow.inc.php index 3271394e..943d376f 100644 --- a/frontends/php/include/acknow.inc.php +++ b/frontends/php/include/acknow.inc.php @@ -39,8 +39,15 @@ if(!$result) return $result; - return DBexecute("insert into acknowledges (userid,alarmid,clock,message)". - " values ($userid,$alarmid,".time().",".zbx_dbstr($message).")"); + $acknowledgeid = get_dbid("acknowledges","acknowledgeid"); + + $result = DBexecute("insert into acknowledges (acknowledgeid,userid,alarmid,clock,message)". + " values ($acknowledgeid,$userid,$alarmid,".time().",".zbx_dbstr($message).")"); + + if(!$result) + return $result; + + return $acknowledgeid; } function set_alarm_acnowledged($alarmid) |
