Added empty around check to avoid php notice.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1674 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
821763e2bd
commit
c76586472b
|
@ -110,7 +110,7 @@ while ( $row = mysql_fetch_assoc( $result ) )
|
|||
$range_sql = "select min(E.StartTime) as MinTime, max(E.EndTime) as MaxTime from Events as E inner join Monitors as M on (E.MonitorId = M.Id) where not isnull(E.StartTime) and not isnull(E.EndTime)";
|
||||
$events_sql = "select E.Id,E.Name,E.StartTime,E.EndTime,E.Length,E.Frames,E.MaxScore,E.Cause,E.Notes,E.Archived,E.MonitorId from Events as E inner join Monitors as M on (E.MonitorId = M.Id) where not isnull(StartTime)";
|
||||
|
||||
if ( $user['MonitorIds'] )
|
||||
if ( !empty($user['MonitorIds']) )
|
||||
{
|
||||
$mon_filter_sql = " and M.Id in (".join( ",", preg_split( '/["\'\s]*,["\'\s]*/', $user['MonitorIds'] ) ).")";
|
||||
|
||||
|
|
Loading…
Reference in New Issue