Possibility of division by zero in zbx_avg (charts2.php)

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Minor
    • 2.0.5rc1, 2.1.0
    • Affects Version/s: 2.0.5rc1, 2.1.0
    • Component/s: Frontend (F)
    • None

      Sometimes if item has no values zbx_avg function executes with errors:
      1. Invalid argument for foreach
      2. Division by zero.

      It happens because $values variable does not contain array. It is "NULL".

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

              Created:
              Updated:
              Resolved: