From 6f9771768dfdf627782d9f65fc1e74882cfde7f5 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 30 Jul 2015 22:49:43 -0700 Subject: event parse cleanup --- include/event.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'include/event.php') diff --git a/include/event.php b/include/event.php index 4b95e5c2f..134c23aa2 100644 --- a/include/event.php +++ b/include/event.php @@ -167,8 +167,14 @@ function bbtoevent($s) { if(preg_match("/\[event\-adjust\](.*?)\[\/event\-adjust\]/is",$s,$match)) $ev['adjust'] = $match[1]; if(array_key_exists('start',$ev)) { - if(array_key_exists('finish',$ev) && (! $ev['finish'])) - $ev['nofinish'] = 0; + if(array_key_exists('finish',$ev)) { + if($ev['finish'] === $ev['start']) + $ev['nofinish'] = 1; + elseif($ev['finish']) + $ev['nofinish'] = 0; + else + $ev['nofinish'] = 1; + } else $ev['nofinish'] = 1; } -- cgit v1.2.3