spacing in views/event.php

pull/2926/head
Isaac Connor 2020-04-17 09:46:10 -04:00
parent 4e9f0b3463
commit bab609426d
1 changed files with 12 additions and 3 deletions

View File

@ -24,7 +24,7 @@ if ( !canView('Events') ) {
}
$eid = validInt($_REQUEST['eid']);
$fid = !empty($_REQUEST['fid'])?validInt($_REQUEST['fid']):1;
$fid = !empty($_REQUEST['fid']) ? validInt($_REQUEST['fid']) : 1;
$Event = new ZM\Event($eid);
if ( $user['MonitorIds'] ) {
@ -79,7 +79,7 @@ $replayModes = array(
'gapless' => translate('ReplayGapless'),
);
if ( isset( $_REQUEST['streamMode'] ) )
if ( isset($_REQUEST['streamMode']) )
$streamMode = validHtmlStr($_REQUEST['streamMode']);
else
$streamMode = 'video';
@ -104,7 +104,16 @@ if ( $Monitor->VideoWriter() == '2' ) {
$Zoom = $Event->Height()/$Event->Width();
}
// These are here to figure out the next/prev event
// These are here to figure out the next/prev event, however if there is no filter, then default to one that specifies the Monitor
if ( !isset($_REQUEST['filter']) ) {
$_REQUEST['filter'] = array(
'Query'=>array(
'terms'=>array(
array('attr'=>'MonitorId', 'op'=>'=', 'val'=>$Event->MonitorId())
)
)
);
}
parseSort();
parseFilter($_REQUEST['filter']);
$filterQuery = $_REQUEST['filter']['query'];