mirror of https://github.com/MISP/MISP
fix: [internal] Fixed an incorrect parameter lookup for the from/to timefilter parser
parent
cca7ee1acc
commit
8bea0fd1dc
|
@ -1935,9 +1935,9 @@ class Event extends AppModel
|
|||
public function set_filter_timestamp($params, $conditions, $filter)
|
||||
{
|
||||
if ($filter == 'from') {
|
||||
$conditions['AND']['Event.date >='] = $from;
|
||||
$conditions['AND']['Event.date >='] = $params['from'];
|
||||
} else if ($filter == 'to') {
|
||||
$conditions['AND']['Event.date <='] = $from;
|
||||
$conditions['AND']['Event.date <='] = $params['to'];
|
||||
} else {
|
||||
$filters = array(
|
||||
'timestamp' => array(
|
||||
|
|
Loading…
Reference in New Issue