mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
Only a value of true will equate to true for muted
This commit is contained in:
@@ -441,8 +441,10 @@ echo $monitor->getStreamHTML($options);
|
||||
<?php
|
||||
$volume = isset($_REQUEST['volume']) ? validInt($_REQUEST['volume']) :
|
||||
(isset($_COOKIE['zmWatchVolume']) ? validInt($_COOKIE['zmWatchVolume']) : 50);
|
||||
$muted = isset($_REQUEST['muted']) ? validInt($_REQUEST['muted']) :
|
||||
(isset($_COOKIE['zmWatchMuted']) ? validInt($_COOKIE['zmWatchMuted']) : false);
|
||||
# 'true' is the only true value for muted. Anything else is false.
|
||||
$muted = (isset($_REQUEST['muted']) and $_REQUEST['muted'] == 'true') ? true :
|
||||
((isset($_COOKIE['zmWatchMuted']) and $_COOKIE['zmWatchMuted'] == 'true') ? true : false);
|
||||
ZM\Debug("Muted $muted");
|
||||
|
||||
?>
|
||||
<span class="volume">
|
||||
|
||||
Reference in New Issue
Block a user