Bug fix for uptra front page event search form
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Jun 2019 16:12:10 +0000 (12:12 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Jun 2019 16:12:10 +0000 (12:12 -0400)
proper use of $from

index.php
models/front/events/list.php
readme.txt

index ac906f0..db2e32f 100755 (executable)
--- 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 <cscott@gaslightmedia.com>
  * @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
  */
index f9b2d5e..bf1a51a 100644 (file)
@@ -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
index f4dcb54..7819ed4 100755 (executable)
@@ -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