Fixed bug that caused 'Call to undefined function Error()' in control_functions.php. Exception was being raised due to logger.php not being included in control_functions.php.

This commit is contained in:
r01k 2021-08-20 22:27:50 -04:00 committed by Isaac Connor
parent 4c213ab453
commit 2d965e7d50
1 changed files with 3 additions and 1 deletions

View File

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