diff --git a/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php b/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php index 2e7f2c8..e88ce31 100644 --- a/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php +++ b/library/Grafana/ProvidedHook/Icingadb/IcingaDbGrapher.php @@ -377,8 +377,7 @@ public function getPreviewHtml(Model $object, $report = false) } if ($this->repeatable === "yes") { - $panelEnd = ($this->panelId - 1) + - intval(substr_count($object->state->performance_data, '=') / $this->numberMetrics); + $panelEnd = ($this->panelId - 1) + intval(substr_count(strval($object->state->performance_data), '=') / $this->numberMetrics); $this->panelId = implode( ',', range($this->panelId, $panelEnd)