whitespace

This commit is contained in:
Isaac Connor 2021-09-25 16:10:50 -04:00
parent 888d79706a
commit 03892796eb
1 changed files with 19 additions and 13 deletions

View File

@ -38,9 +38,15 @@ $monitor = null;
if (!empty($_REQUEST['mid'])) {
$mid = validInt($_REQUEST['mid']);
$monitor = new ZM\Monitor($mid);
if ( $monitor and ZM_OPT_X10 )
if ($monitor->Id()) {
if (ZM_OPT_X10) {
$x10Monitor = dbFetchOne('SELECT * FROM TriggersX10 WHERE MonitorId = ?', NULL, array($mid));
}
} else {
$monitor->Name(translate('Monitor').'-'.$mid);
$monitor->WebColour(random_colour());
}
}
if (!$monitor) {
$monitor = new ZM\Monitor();