only use scale if it has a value
This commit is contained in:
parent
730d76189d
commit
8bd34a982d
|
@ -2102,7 +2102,7 @@ function validHtmlStr( $input ) {
|
|||
|
||||
function getStreamHTML( $monitor, $options = array() ) {
|
||||
|
||||
if ( isset($options['scale']) ) {
|
||||
if ( isset($options['scale']) and $options['scale'] ) {
|
||||
$options['width'] = reScale( $monitor->Width(), $options['scale'] );
|
||||
$options['height'] = reScale( $monitor->Height(), $options['scale'] );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue