Prevent error when no alert rules (#12815)

This commit is contained in:
Jellyfrog
2021-04-30 05:45:06 +02:00
committed by GitHub
parent f7fbf9fe07
commit 4821c2b377

View File

@@ -52,6 +52,7 @@ $query = "SELECT DATE_FORMAT(time_logged, '" . \LibreNMS\Config::get('alert_grap
<?php
$groups = [];
$max_count = 0;
$data = [];
foreach (dbFetchRows($query, $param) as $return_value) {
$date = $return_value['Date'];