Fixed in export.php "Class 'Filter' not found" and construction of SQL query with wrong syntax

This commit is contained in:
r01k 2022-02-04 22:19:15 -05:00
parent ac909d404a
commit 02d896abe2
1 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ $limitQuery = '';
if ( $user['MonitorIds'] ) { if ( $user['MonitorIds'] ) {
$user_monitor_ids = ' M.Id in ('.$user['MonitorIds'].')'; $user_monitor_ids = ' M.Id in ('.$user['MonitorIds'].')';
$eventsSql .= $user_monitor_ids; $eventsSql .= $user_monitor_ids;
} else { } else if ( !isset($_REQUEST['filter']) ) {
$eventsSql .= ' 1'; $eventsSql .= ' 1';
} }
@ -98,7 +98,7 @@ if ( isset($_REQUEST['eid']) and $_REQUEST['eid'] ) {
$eventsValues += $_REQUEST['eids']; $eventsValues += $_REQUEST['eids'];
} else if ( isset($_REQUEST['filter']) ) { } else if ( isset($_REQUEST['filter']) ) {
parseSort(); parseSort();
$filter = Filter::parse($_REQUEST['filter']); $filter = ZM\Filter::parse($_REQUEST['filter']);
$filterQuery = $filter->querystring(); $filterQuery = $filter->querystring();
if ( $filter->sql() ) { if ( $filter->sql() ) {