From: Michael Date: Mon, 25 Nov 2019 11:16:55 +0000 (+0000) Subject: Notice/warning in event fixed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=06a6774a7b7c97ae255c2d8eddeccf1367acec9c;p=friendica.git Notice/warning in event fixed --- 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');