Added empty around check to avoid php notice.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1674 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2005-12-16 10:08:08 +00:00
parent 821763e2bd
commit c76586472b
1 changed files with 1 additions and 1 deletions

View File

@ -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'] ) ).")";