Bug fix for member events
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 3 Aug 2016 12:24:36 +0000 (08:24 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 3 Aug 2016 12:24:36 +0000 (08:24 -0400)
was checking actiondata not actionData

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

index fc707e8..6d0b654 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Events
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Gaslight Media Members Database.
- * Version: 1.2.28
+ * Version: 1.2.29
  * Author: Chuck Scott
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -20,7 +20,7 @@
  * @package glmMembersDatabaseEventsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.2.28
+ * @version 1.2.29
  */
 
 /*
@@ -38,7 +38,7 @@
  *  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.2.28');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.29');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 483c43c..ed99308 100644 (file)
@@ -58,7 +58,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
         $eventsByDate   = null;
 
         // If a memberID has been specified, limit to that member
-        if ( isset( $actiondata['request']['member'] ) ) {
+        if ( isset( $actionData['request']['member'] ) ) {
             $memberId = $actionData['request']['member'] - 0;
         }
         if ($memberId == 0) {
@@ -543,8 +543,6 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
                     }
                 }
             }
-            //echo '<pre>$events: ' . print_r($events, true) . '</pre>';
-            //echo '<pre>$eventsByDate: ' . print_r($eventsByDate, true) . '</pre>';
 
             ksort($eventsByDate);
             foreach ($eventsByDate as $eventDate => &$eventgroup ) {