mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-23 06:48:24 -04:00
fix width and height in options
This commit is contained in:
1 parent
148d7066f9
commit
fed4dae7e5
1 file changed
+4
-8
@@ -2133,18 +2133,14 @@ function getStreamHTML( $monitor, $options = array() ) {
|
||||
$options['height'] = reScale( $monitor->Height(), $options['scale'] );
|
||||
} else {
|
||||
if ( ! isset( $options['width'] ) ) {
|
||||
if ( $options['width'] == 100 ) {
|
||||
$options['width'] = $monitor->Width();
|
||||
} else {
|
||||
$options['width'] = NULL;
|
||||
}
|
||||
} else if ( $options['width'] == 100 ) {
|
||||
$options['width'] = $monitor->Width();
|
||||
}
|
||||
if ( ! isset( $options['height'] ) ) {
|
||||
if ( $options['height'] == 100 ) {
|
||||
$options['height'] = $monitor->Height();
|
||||
} else {
|
||||
$options['height'] = NULL;
|
||||
}
|
||||
} else if ( $options['height'] == 100 ) {
|
||||
$options['height'] = $monitor->Height();
|
||||
}
|
||||
}
|
||||
if ( ! isset($options['mode'] ) ) {
|
||||
|
||||
Reference in new issue
Block a user