aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/event.php10
1 files changed, 8 insertions, 2 deletions
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;
}