Handle event having no width or height

pull/4704/head
Isaac Connor 2026-02-25 17:36:26 -05:00
parent d67f23b279
commit 15807eb419
1 changed files with 1 additions and 1 deletions

View File

@ -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'), '&');