Handle when scale is 0 in getImageSrc

This commit is contained in:
Isaac Connor
2024-12-14 13:53:56 -05:00
parent c2b64364a6
commit 72fcd3eb9e

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;