Handle when scale is 0 in getImageSrc

pull/4202/head
Isaac Connor 2024-12-14 13:53:56 -05:00
parent c2b64364a6
commit 72fcd3eb9e
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ class Event extends ZM_Object {
$hasAnalImage = $alarmFrame && file_exists($analPath) && filesize($analPath);
$isAnalImage = $hasAnalImage && !$captureOnly;
if ( !ZM_WEB_SCALE_THUMBS || ($scale >= SCALE_BASE) || !function_exists('imagecreatefromjpeg') ) {
if ( !ZM_WEB_SCALE_THUMBS || !$scale || ($scale >= SCALE_BASE) || !function_exists('imagecreatefromjpeg') ) {
$imagePath = $thumbPath = $isAnalImage ? $analPath : $captPath;
$imageFile = $imagePath;
$thumbFile = $thumbPath;