fix ZM_SERVER_ID instead of ZM_SERVER
This commit is contained in:
parent
dd7f399959
commit
ec6782a663
|
@ -962,7 +962,7 @@ function daemonControl( $command, $daemon=false, $args=false )
|
|||
|
||||
function zmcControl( $monitor, $mode=false )
|
||||
{
|
||||
if ( (!ZM_SERVER) or ( ZM_SERVER==$monitor['ServerId'] ) ) {
|
||||
if ( (!defined('ZM_SERVER_ID')) or ( ZM_SERVER_ID==$monitor['ServerId'] ) ) {
|
||||
$row = NULL;
|
||||
if ( $monitor['Type'] == "Local" )
|
||||
{
|
||||
|
@ -993,7 +993,7 @@ function zmcControl( $monitor, $mode=false )
|
|||
|
||||
function zmaControl( $monitor, $mode=false )
|
||||
{
|
||||
if ( (!ZM_SERVER) or ( ZM_SERVER==$monitor['ServerId'] ) ) {
|
||||
if ( (!defined('ZM_SERVER_ID')) or ( ZM_SERVER_ID==$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) );
|
||||
|
|
Loading…
Reference in New Issue