fix: [dashboard:apiActivityWidget] Fixed mixing datetime condition format

pull/9250/head
Sami Mokaddem 2023-08-11 11:04:12 +02:00
parent 54b6fb2c03
commit c91af87ae5
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 3 deletions

View File

@ -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 {