From 6c31cb81a081ce9ea11f4ca5fac0fd88d79d466c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 20 Jun 2019 12:14:00 -0400 Subject: [PATCH] update readme --- index.php | 6 +++--- models/front/events/list.php | 4 ++-- readme.txt | 4 +++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index e450195..b7ff0a0 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 6337b78..ab51095 100644 --- a/models/front/events/list.php +++ b/models/front/events/list.php @@ -372,12 +372,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 722d8ed..3b1ab14 100755 --- a/readme.txt +++ b/readme.txt @@ -25,11 +25,13 @@ e.g. 1. Activate the plugin through the 'Plugins' menu in WordPress == Changelog == -= Pending = New options * Read more button options * Minimum number of events option += 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 -- 2.17.1