From 77486169926fcd25ee7d8a795e2975426e2978e8 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 20 Jan 2022 11:51:08 -0500 Subject: [PATCH] If rate > 1600, limit it to 1600 to prevent logged errors --- web/skins/classic/views/event.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/skins/classic/views/event.php b/web/skins/classic/views/event.php index b096fda97..050359ce5 100644 --- a/web/skins/classic/views/event.php +++ b/web/skins/classic/views/event.php @@ -46,6 +46,10 @@ if (isset($_REQUEST['rate']) ) { } else { $rate = reScale(RATE_BASE, $monitor->DefaultRate(), ZM_WEB_DEFAULT_RATE); } +if ($rate > 1600) { + $rate = 1600; + zm_setcookie('zmEventRate', $rate); +} if (isset($_REQUEST['scale'])) { $scale = validInt($_REQUEST['scale']);