mirror of https://github.com/MISP/MISP
fix: [dashboard:organisationMapWidget] Do not require the config to have start and end date
parent
ed61d9ecb4
commit
5e68773dbb
|
@ -60,9 +60,9 @@ class OrganisationMapWidget
|
|||
}
|
||||
}
|
||||
}
|
||||
if ($options['start_date']) {
|
||||
if (!empty($options['start_date'])) {
|
||||
$params['conditions']['AND']['Organisation.date_created >='] = (new DateTime($options['start_date']))->format('Y-m-d H:i:s');
|
||||
if (empty($options['end_date'])) {
|
||||
if (!empty($options['end_date'])) {
|
||||
$params['conditions']['AND']['Organisation.date_created <='] = (new DateTime($options['end_date']))->format('Y-m-d H:i:s');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue