From 1fcfc920ce75fb211e06a70ef14441a5444dcc11 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Wed, 11 Sep 2013 22:00:48 +0200 Subject: [PATCH] hide cancelled event on web site --- www/inc/rendering/event_listing.php | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/www/inc/rendering/event_listing.php b/www/inc/rendering/event_listing.php index da5bb24..09906a9 100644 --- a/www/inc/rendering/event_listing.php +++ b/www/inc/rendering/event_listing.php @@ -39,6 +39,8 @@ public static function createEventList() if($event->getstart()<=$now)continue; //only show those available via web if(!$session->checkFlags($event->getflags()))continue; + //don't show cancelled events + if($event->getiscancelled())continue; //encode as array $list['events'][]=$event; } -- 1.7.2.5