From 15807eb419299b51b441bb8c599563ce43a77e19 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 25 Feb 2026 17:36:26 -0500 Subject: [PATCH] Handle event having no width or height --- web/ajax/events.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/ajax/events.php b/web/ajax/events.php index 854c088d9..dfec61bc1 100644 --- a/web/ajax/events.php +++ b/web/ajax/events.php @@ -320,7 +320,7 @@ function queryRequest($filter, $search, $advsearch, $sort, $offset, $order, $lim if (!$event->canView()) continue; if ($event->Monitor()->Deleted()) continue; - $scale = intval(5*100*ZM_WEB_LIST_THUMB_WIDTH / $event->Width()); + $scale = $event->width() ? intval(5*100*ZM_WEB_LIST_THUMB_WIDTH / $event->Width()) : 100; $imgSrc = $event->getThumbnailSrc(array(), '&'); $streamSrc = $event->getStreamSrc(array( 'mode'=>'jpeg', 'scale'=>$scale, 'maxfps'=>ZM_WEB_VIDEO_MAXFPS, 'replay'=>'single', 'rate'=>'400'), '&');