]> git.mxchange.org Git - friendica.git/commitdiff
Avoid a Notice
authorTobias Hößl <tobias@hoessl.eu>
Mon, 27 Feb 2012 22:01:17 +0000 (22:01 +0000)
committerTobias Hößl <tobias@hoessl.eu>
Mon, 27 Feb 2012 22:01:17 +0000 (22:01 +0000)
include/event.php

index 4a9a9a0041e40ec6318070806ec9add4be990333..29202baddf982417cdf3decedc3f0b69be539dc8 100755 (executable)
@@ -163,7 +163,7 @@ function bbtoevent($s) {
        if(preg_match("/\[event\-adjust\](.*?)\[\/event\-adjust\]/is",$s,$match))
                $ev['adjust'] = $match[1];
        $match = '';
-       $ev['nofinish'] = (($ev['start'] && (!x($ev, 'finish') || !$ev['finish'])) ? 1 : 0);
+       $ev['nofinish'] = (((x($ev, 'start') && $ev['start']) && (!x($ev, 'finish') || !$ev['finish'])) ? 1 : 0);
        return $ev;
 
 }