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:
parent
b64c506659
commit
e695dfd4dd
|
@ -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)";
|
||||
|
|
Loading…
Reference in New Issue