From: Steve Sutton Date: Fri, 9 Sep 2016 17:49:10 +0000 (-0400) Subject: Update getting events with limit set. X-Git-Tag: v1.4.0^2~53 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=cfe60cc20dd92728f1cf52e3f646ec33484132a5;p=WP-Plugins%2Fglm-member-db-events.git Update getting events with limit set. If limit was set the sql query was using NOW() function to get events. If the start time of the event already past then it would not show up. Changed the mysql function to CURDATE() This will get the date. --- diff --git a/models/front/events/baseAction.php b/models/front/events/baseAction.php index 3723bd7..67b8ce8 100644 --- a/models/front/events/baseAction.php +++ b/models/front/events/baseAction.php @@ -111,7 +111,7 @@ abstract class GlmMembersFront_events_baseAction extends GlmDataEvents SELECT distinct event FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "times AS ET WHERE active - AND start_time >= NOW() + AND start_time >= CURDATE() ) "; $order = "T.id";