From 06a6774a7b7c97ae255c2d8eddeccf1367acec9c Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 25 Nov 2019 11:16:55 +0000 Subject: [PATCH] Notice/warning in event fixed --- src/Model/Event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Event.php b/src/Model/Event.php index fe81a5e958..7b6f31baa4 100644 --- a/src/Model/Event.php +++ b/src/Model/Event.php @@ -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'); -- 2.39.5