From 447a0975c71ff6fdb7fd5f2c96b5ff960fbdaa09 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 23 Jan 2018 13:15:48 -0800 Subject: [PATCH] fix bracket --- web/api/app/Controller/MonitorsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/api/app/Controller/MonitorsController.php b/web/api/app/Controller/MonitorsController.php index 77113e892..c372463c1 100644 --- a/web/api/app/Controller/MonitorsController.php +++ b/web/api/app/Controller/MonitorsController.php @@ -171,7 +171,7 @@ class MonitorsController extends AppController { $func = $Monitor['Function']; // We don't pass the request data as the monitor object because it may be a subset of the full monitor array $this->daemonControl( $this->Monitor->id, 'stop' ); - if ( ( $func != 'None' ) and ( (!defined('ZM_SERVER_ID']) or ($Monitor['ServerId']==ZM_SERVER_ID) ) ) { + if ( ( $func != 'None' ) and ( (!defined('ZM_SERVER_ID')) or ($Monitor['ServerId']==ZM_SERVER_ID) ) ) { $this->daemonControl( $this->Monitor->id, 'start' ); } } // end function edit