whitespace
This commit is contained in:
parent
888d79706a
commit
03892796eb
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue