check for ZM_SERVER_ID being defined

This commit is contained in:
Isaac Connor 2018-07-09 15:30:15 -04:00
parent 0b4d76f931
commit c2c7b75956
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ var navBarRefresh = <?php echo 1000*ZM_WEB_REFRESH_NAVBAR ?>;
var currentView = '<?php echo $view ?>'; var currentView = '<?php echo $view ?>';
var thisUrl = "<?php echo ZM_BASE_URL.$_SERVER['PHP_SELF'] ?>"; var thisUrl = "<?php echo ZM_BASE_URL.$_SERVER['PHP_SELF'] ?>";
var skinPath = "<?php echo ZM_SKIN_PATH ?>"; var skinPath = "<?php echo ZM_SKIN_PATH ?>";
var serverId = '<?php echo ZM_SERVER_ID ?>'; var serverId = '<?php echo defined('ZM_SERVER_ID') ? ZM_SERVER_ID : '' ?>';
var canEditSystem = <?php echo canEdit('System' )?'true':'false' ?>; var canEditSystem = <?php echo canEdit('System' )?'true':'false' ?>;
var canViewSystem = <?php echo canView('System' )?'true':'false' ?>; var canViewSystem = <?php echo canView('System' )?'true':'false' ?>;