mirror of https://github.com/MISP/MISP
fix: [dashboard:apiActivityWidget] Fixed mixing datetime condition format
parent
54b6fb2c03
commit
c91af87ae5
|
@ -37,9 +37,7 @@ class APIActivityWidget
|
|||
} else if (!empty($options['start_date'])) {
|
||||
$begin = new DateTime($options['start_date']);
|
||||
$end = [];
|
||||
if (empty($options['end_date'])) {
|
||||
$end = new DateTime();
|
||||
} else {
|
||||
if (!empty($options['end_date'])) {
|
||||
$end = new DateTime($options['end_date']);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue