only use scale if it has a value

This commit is contained in:
Isaac Connor 2017-03-21 15:30:22 -04:00
parent 730d76189d
commit 8bd34a982d
1 changed files with 1 additions and 1 deletions

View File

@ -2102,7 +2102,7 @@ function validHtmlStr( $input ) {
function getStreamHTML( $monitor, $options = array() ) { function getStreamHTML( $monitor, $options = array() ) {
if ( isset($options['scale']) ) { if ( isset($options['scale']) and $options['scale'] ) {
$options['width'] = reScale( $monitor->Width(), $options['scale'] ); $options['width'] = reScale( $monitor->Width(), $options['scale'] );
$options['height'] = reScale( $monitor->Height(), $options['scale'] ); $options['height'] = reScale( $monitor->Height(), $options['scale'] );
} }