summaryrefslogtreecommitdiff
path: root/forum
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-11-07 16:22:35 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2011-11-07 16:22:35 +0100
commit07e3562479c4c3f15b9b281d02f275f04c16016b (patch)
treeee7bca221b0c1a7da6a684aa7a40d5fe3caf5dcf /forum
parentce4e40f8e84972f64d910ce18704986aa2fd7fac (diff)
Only show upcoming shows.
Diffstat (limited to 'forum')
-rw-r--r--forum/utils/calendar.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/forum/utils/calendar.php b/forum/utils/calendar.php
index 0e7dba5..8139b31 100644
--- a/forum/utils/calendar.php
+++ b/forum/utils/calendar.php
@@ -13,7 +13,8 @@ function calendar()
$events = new Events($DATA_DIR . "/calendar.xml");
foreach($events->events as $e) {
- if($e->concert == "true") $str .= $e->show_simple();
+ if($e->concert == "true" && $e->starttime + $e->duration > time())
+ $str .= $e->show_simple();
}
if(!isset($GLOBALS['date']))