From 84a4bb7f9a11c00ce5f67d3ac3c25e28b92fdef2 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 1 Feb 2020 23:50:42 +0000 Subject: [PATCH] types --- ext/handle_video/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/handle_video/main.php b/ext/handle_video/main.php index 5871325b..e669a463 100644 --- a/ext/handle_video/main.php +++ b/ext/handle_video/main.php @@ -56,11 +56,11 @@ class VideoFileHandler extends DataHandlerExtension } } if (array_key_exists("width", $stream) && !empty($stream["width"]) - && is_numeric($stream["width"]) && intval($stream["width"]) > ($event->width) ?? 0) { + && is_numeric($stream["width"]) && intval($stream["width"]) > ($event->image->width) ?? 0) { $event->image->width = intval($stream["width"]); } if (array_key_exists("height", $stream) && !empty($stream["height"]) - && is_numeric($stream["height"]) && intval($stream["height"]) > ($event->height) ?? 0) { + && is_numeric($stream["height"]) && intval($stream["height"]) > ($event->image->height) ?? 0) { $event->image->height = intval($stream["height"]); } }