Notice/warning in event fixed

2022.09-rc
Michael 2019-11-25 11:16:55 +00:00
rodzic 4f52a90d05
commit 06a6774a7b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -257,7 +257,7 @@ class Event extends BaseObject
$event['deny_cid'] = $arr['deny_cid'] ?? '';
$event['deny_gid'] = $arr['deny_gid'] ?? '';
$event['adjust'] = intval($arr['adjust'] ?? 0);
$event['nofinish'] = intval(!empty($arr['nofinish'] || !empty($event['start']) && empty($event['finish'])));
$event['nofinish'] = intval($arr['nofinish'] ?? (!empty($event['start']) && empty($event['finish'])));
$event['created'] = DateTimeFormat::utc(($arr['created'] ?? '') ?: 'now');
$event['edited'] = DateTimeFormat::utc(($arr['edited'] ?? '') ?: 'now');