From 528582fec65dd0d9d1f0456ecfb4e0bf90853132 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Fri, 9 Jun 2017 10:36:38 -0400 Subject: [PATCH] fix tabs --- web/includes/functions.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/web/includes/functions.php b/web/includes/functions.php index 0c04c0acb..860053335 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2122,13 +2122,13 @@ function validHtmlStr( $input ) { function getStreamHTML( $monitor, $options = array() ) { - if ( isset($options['scale']) and $options['scale'] ) { - $options['width'] = reScale( $monitor->Width(), $options['scale'] ); - $options['height'] = reScale( $monitor->Height(), $options['scale'] ); - } - if ( ! isset($options['mode'] ) ) { - $options['mode'] = 'stream'; - } + if ( isset($options['scale']) and $options['scale'] ) { + $options['width'] = reScale( $monitor->Width(), $options['scale'] ); + $options['height'] = reScale( $monitor->Height(), $options['scale'] ); + } + if ( ! isset($options['mode'] ) ) { + $options['mode'] = 'stream'; + } $options['maxfps'] = ZM_WEB_VIDEO_MAXFPS; if ( $monitor->StreamReplayBuffer() ) $options['buffer'] = $monitor->StreamReplayBuffer();