diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-07 16:22:35 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2011-11-07 16:22:35 +0100 |
commit | 07e3562479c4c3f15b9b281d02f275f04c16016b (patch) | |
tree | ee7bca221b0c1a7da6a684aa7a40d5fe3caf5dcf /forum/utils/calendar.php | |
parent | ce4e40f8e84972f64d910ce18704986aa2fd7fac (diff) |
Only show upcoming shows.
Diffstat (limited to 'forum/utils/calendar.php')
-rw-r--r-- | forum/utils/calendar.php | 3 |
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'])) |