Fixed a missing bracket post merge and also SQL_values now used for EventID and Monitors

This commit is contained in:
SteveGilvarry 2015-03-22 17:31:22 +11:00
parent b3313edde0
commit fd94d22b0e
1 changed files with 4 additions and 4 deletions

View File

@ -27,8 +27,8 @@ if ( !canView( 'Events' ) )
$eid = validInt( $_REQUEST['eid'] );
$fid = !empty($_REQUEST['fid'])?validInt($_REQUEST['fid']):1;
$sql = 'SELECT E.*,M.Name AS MonitorName,M.DefaultRate,M.DefaultScale,M.VideoWriter,M.SaveJPEGs FROM Events AS E INNER JOIN Monitors AS M ON E.MonitorId = M.Id WHERE E.Id = ?'.$midSql;
$event = dbFetchOne( $sql, NULL, array($eid) );
$sql = 'SELECT E.*,M.Name AS MonitorName,M.DefaultRate,M.DefaultScale,M.VideoWriter,M.SaveJPEGs FROM Events AS E INNER JOIN Monitors AS M ON E.MonitorId = M.Id WHERE E.Id = ?';
$sql_values = array( $eid );
if ( $user['MonitorIds'] ) {
$monitor_ids = explode( ',', $user['MonitorIds'] );
@ -239,8 +239,8 @@ if ($event['SaveJPEGs'] & 3)
</div>
<?php
}
}
?>
</div>
</div>
</body>
</html>