]> git.mxchange.org Git - friendica.git/commitdiff
Notice/warning in event fixed
authorMichael <heluecht@pirati.ca>
Mon, 25 Nov 2019 11:16:55 +0000 (11:16 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 25 Nov 2019 11:16:55 +0000 (11:16 +0000)
src/Model/Event.php

index fe81a5e958a7606755b6d19ee78ebbeaeba2c290..7b6f31baa4e13679d7109ebaa824ef0ef5b3613f 100644 (file)
@@ -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');