Error in class Alert

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 1.9.0 (alpha)
    • Affects Version/s: 1.9.0 (alpha)
    • Component/s: API (A)
    • None
    • Environment:
      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'].' )';

            Assignee:
            Unassigned
            Reporter:
            yaap
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: