aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-30 22:49:43 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-30 22:49:43 -0700
commit6f9771768dfdf627782d9f65fc1e74882cfde7f5 (patch)
tree8537b79e46ee47c99b9ce490991be9050b426d48 /include
parentacc9a8e43bac0fbb8fa8570e035850102bd57bfd (diff)
downloadvolse-hubzilla-6f9771768dfdf627782d9f65fc1e74882cfde7f5.tar.gz
volse-hubzilla-6f9771768dfdf627782d9f65fc1e74882cfde7f5.tar.bz2
volse-hubzilla-6f9771768dfdf627782d9f65fc1e74882cfde7f5.zip
event parse cleanup
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;
}