hide cancelled event on web site
authorKonrad Rosenbaum <konrad@silmor.de>
Wed, 11 Sep 2013 20:00:48 +0000 (22:00 +0200)
committerKonrad Rosenbaum <konrad@silmor.de>
Wed, 11 Sep 2013 20:00:48 +0000 (22:00 +0200)
www/inc/rendering/event_listing.php

index da5bb24..09906a9 100644 (file)
@@ -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;
        }