From 3feb0897408fbf9d91fc2502c9be37e705fc1c0f Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 17 Aug 2022 15:34:39 -0400 Subject: [PATCH] Clear out width=auto and height=auto to prevent warnings in logs --- web/includes/Monitor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index f703d4d34..4f167312b 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -880,9 +880,9 @@ public static function getStatuses() { if (!isset($options['mode'])) { $options['mode'] = 'stream'; } - if (!isset($options['width'])) + if (!isset($options['width']) or $options['width'] == 'auto') $options['width'] = 0; - if (!isset($options['height'])) + if (!isset($options['height']) or $options['height'] == 'auto') $options['height'] = 0; if (!isset($options['maxfps'])) {