Merge pull request #3335 from r01k/master

Fixed "Call to undefined function" Exception in control_functions.php
This commit is contained in:
Isaac Connor 2021-08-21 10:38:43 -04:00 committed by GitHub
commit 4596f61250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
<?php <?php
require_once('logger.php');
function buildControlCommand($monitor) { function buildControlCommand($monitor) {
$ctrlCommand = ''; $ctrlCommand = '';
$control = $monitor->Control(); $control = $monitor->Control();
@ -218,7 +220,7 @@ function buildControlCommand($monitor) {
} }
} }
} else { } else {
Error('Invalid control parameter: ' . $_REQUEST['control'] ); ZM\Error('Invalid control parameter: ' . $_REQUEST['control'] );
} }
} elseif ( isset($_REQUEST['x']) && isset($_REQUEST['y']) ) { } elseif ( isset($_REQUEST['x']) && isset($_REQUEST['y']) ) {
if ( $_REQUEST['control'] == 'moveMap' ) { if ( $_REQUEST['control'] == 'moveMap' ) {