mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 08:18:28 -04:00
fix bad code
This commit is contained in:
1 parent
9276eea491
commit
02eb36040a
1 file changed
+2
-2
@@ -982,7 +982,7 @@ function daemonControl( $command, $daemon=false, $args=false )
|
||||
|
||||
function zmcControl( $monitor, $mode=false )
|
||||
{
|
||||
if ( (!ZM_SERVER) or ( ZM_SERVER==$monitor[ServerId}) ) {
|
||||
if ( (!ZM_SERVER) or ( ZM_SERVER==$monitor['ServerId'] ) ) {
|
||||
$row = NULL;
|
||||
if ( $monitor['Type'] == "Local" )
|
||||
{
|
||||
@@ -1013,7 +1013,7 @@ function zmcControl( $monitor, $mode=false )
|
||||
|
||||
function zmaControl( $monitor, $mode=false )
|
||||
{
|
||||
if ( (!ZM_SERVER) or ( ZM_SERVER==$monitor[ServerId}) ) {
|
||||
if ( (!ZM_SERVER) or ( ZM_SERVER==$monitor['ServerId'] ) ) {
|
||||
if ( !is_array( $monitor ) )
|
||||
{
|
||||
$monitor = dbFetchOne( "select C.*, M.* from Monitors as M left join Controls as C on (M.ControlId = C.Id ) where M.Id=?", NULL, array($monitor) );
|
||||
|
||||
Reference in new issue
Block a user