mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
re-sort traps if history enabled
This commit is contained in:
parent
930da6c58f
commit
d7808f6dc3
@ -302,8 +302,15 @@ if (empty($all_address_agents)) {
|
||||
switch ($config['dbtype']) {
|
||||
case 'mysql':
|
||||
$sql = 'SELECT *
|
||||
FROM ttrap
|
||||
ORDER BY timestamp DESC';
|
||||
FROM ttrap
|
||||
WHERE (
|
||||
`source` IN ('.implode(',', $address_by_user_groups).") OR
|
||||
`source`='' OR
|
||||
`source` NOT IN (".implode(',', $all_address_agents).')
|
||||
)
|
||||
%s
|
||||
ORDER BY timestamp DESC
|
||||
LIMIT %d,%d';
|
||||
break;
|
||||
|
||||
case 'postgresql':
|
||||
|
Loading…
x
Reference in New Issue
Block a user