From: Steve Sutton Date: Wed, 9 Nov 2016 20:40:29 +0000 (-0500) Subject: List for categories should have only active events. X-Git-Tag: v1.5.4^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=20f01db71a03668b0c5f5c3851f014b98528e444;p=WP-Plugins%2Fglm-member-db-events.git List for categories should have only active events. Restrict the category list for event search to categories that are in active events. --- diff --git a/classes/data/dataCategories.php b/classes/data/dataCategories.php index bd74e77..eabf097 100644 --- a/classes/data/dataCategories.php +++ b/classes/data/dataCategories.php @@ -351,6 +351,11 @@ class GlmDataEventsCategories extends GlmDataAbstract WHERE active AND start_time >= NOW() ) + AND event IN ( + SELECT id + FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events + WHERE status = 10 + ) ) "; $order = "T.name"; return $this->getList($where, $order);