diff options
Diffstat (limited to 'forum')
-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'])) |