Allow for level as a minimum when selecting availability criteria for other fields.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3501 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2011-08-24 13:15:58 +00:00
parent b64c506659
commit e695dfd4dd
1 changed files with 4 additions and 1 deletions

View File

@ -64,7 +64,10 @@ switch ( $_REQUEST['task'] )
$options = array();
$where = array();
foreach( $filter as $field=>$value )
$where[$field] = "$field = '".dbEscape($value)."'";
if ( $field == 'Level' )
$where[$field] = dbEscape($field)." <= ".dbEscape($value);
else
$where[$field] = dbEscape($field)." = '".dbEscape($value)."'";
foreach( $filterFields as $field )
{
$sql = "select distinct $field from Logs where not isnull($field)";