-
Incident report
-
Resolution: Fixed
-
Minor
-
1.9.0 (alpha)
-
None
-
Any
Class: Alert
method: add
file: class.calert.php
In the following statement change "sentto" to "sendto".
$sql = 'INSERT INTO alerts '.
'(alertid, actionid, eventid, userid, mediatypeid, clock, sendto, subject, message, status, retries, error, nextcheck, esc_step, alerttype) '.
' VALUES ('.$alertid.','.$alert['actionid'].','.$alert['eventid'].','.$alert['userid'].','.$alert['mediatypeid'].','.
$alert['clock'].','.zbx_dbstr($alert['sentto']).','.zbx_dbstr($alert['subject']).','.zbx_dbstr($alert['message']).','.
$alert['status'].','.$alert['retries'].','.zbx_dbstr($alert['error']).','.$alert['nextcheck'].','.
$alert['esc_step'].','.$alert['alerttype'].' )';