mirror of https://github.com/MISP/MISP
fix: [dashboard:apiActivity] Do not initialize variable if not needed
parent
c91af87ae5
commit
cf03704c72
|
@ -36,7 +36,6 @@ class APIActivityWidget
|
|||
$begin = new DateTime(date('Y-m-d', strtotime('first day of this year 00:00:00', time())));
|
||||
} else if (!empty($options['start_date'])) {
|
||||
$begin = new DateTime($options['start_date']);
|
||||
$end = [];
|
||||
if (!empty($options['end_date'])) {
|
||||
$end = new DateTime($options['end_date']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue