From: Steve Sutton Date: Thu, 20 Jun 2019 16:12:10 +0000 (-0400) Subject: Bug fix for uptra front page event search form X-Git-Tag: v1.7.28^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=6507b85b5fc1d7a4fd71428b3d6d4455862d64ce;p=WP-Plugins%2Fglm-member-db-events.git Bug fix for uptra front page event search form proper use of $from --- diff --git a/index.php b/index.php index ac906f0..db2e32f 100755 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Events Add-On * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.7.26 + * Version: 1.7.28 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.7.26 + * @version 1.7.28 */ // Check that we're being called by WordPress. @@ -43,7 +43,7 @@ if (!defined('ABSPATH')) { * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.7.27'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.7.28'); /** * Plugin DB Version */ diff --git a/models/front/events/list.php b/models/front/events/list.php index f9b2d5e..bf1a51a 100644 --- a/models/front/events/list.php +++ b/models/front/events/list.php @@ -369,12 +369,12 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction if ( isset( $_REQUEST['month'] ) && $_REQUEST['month'] && !( isset( $_REQUEST['event_name'] ) && $_REQUEST['event_name'] ) ) { list($month, $year) = explode(" ", $_REQUEST['month']); - $startingTime = mktime(0, 0, 0, $month, 1, $year); + $startingTime = mktime(0, 0, 0, (int)$month, 1, (int)$year); $lastday = date("t", $startingTime); $endingTime = mktime(0, 0, 0, $month, $lastday, $year); $fromDate = date("m/d/Y", $startingTime); $toDate = date("m/d/Y", $endingTime); - $frome = date("Y-m-d", $startingTime); + $from = date("Y-m-d", $startingTime); $to = date("Y-m-d", $endingTime); $this->dateRange = "id IN ( SELECT id diff --git a/readme.txt b/readme.txt index f4dcb54..7819ed4 100755 --- a/readme.txt +++ b/readme.txt @@ -25,6 +25,9 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress == Changelog == += 1.7.27 - 1.7.28 = +* Bug fixes. + = 1.7.26 = * Updating date on detail page per Jodie request that the date span not be used if from the agenda view but instead show the date of that event per the