From 07e3562479c4c3f15b9b281d02f275f04c16016b Mon Sep 17 00:00:00 2001
From: Bent Bisballe Nyeng <deva@aasimon.org>
Date: Mon, 7 Nov 2011 16:22:35 +0100
Subject: Only show upcoming shows.

---
 forum/utils/calendar.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'forum/utils/calendar.php')

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']))
-- 
cgit v1.2.3