From 1eaeccc564429d2ec6dd67ad4590faa49f7147cd Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 19 Apr 2022 12:31:43 -0400 Subject: [PATCH] Handle zones not being set in options --- web/includes/Monitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index ee7b437ce..f25354ace 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -928,7 +928,7 @@ public static function getStatuses() { $this->Name()); } - if ($options['zones']) { + if (isset($options['zones']) and $options['zones']) { $html .= ''.PHP_EOL; foreach (Zone::find(array('MonitorId'=>$this->Id()), array('order'=>'Area DESC')) as $zone) { $html .= $zone->svg_polygon();