models/admin/ajax/eventsCalMonthAJAX.php - fixing a missing parameter issue.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 15 Nov 2016 14:57:22 +0000 (09:57 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 15 Nov 2016 14:57:22 +0000 (09:57 -0500)
* Commented 'message' out in return array. No $message parameter.

models/admin/ajax/eventsCalMonthAJAX.php

index 2c0a594..b27be1e 100644 (file)
@@ -75,9 +75,9 @@ class GlmMembersAdmin_ajax_eventsCalMonthAJAX extends GlmDataEventsTimes
      * @access public
      * @return array events
      */
-    
+
     /*
-     * leaving sql query in the event it is needed in the future. It selects events 
+     * leaving sql query in the event it is needed in the future. It selects events
      * from within a given date range. Left out of the where statement because it is
      * already performed by $this->dateRange
      */
@@ -95,12 +95,12 @@ class GlmMembersAdmin_ajax_eventsCalMonthAJAX extends GlmDataEventsTimes
 
         $where .= "T.active = 1
             AND T.event IN (
-                SELECT ET.id 
+                SELECT ET.id
                 FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "events AS ET
                 WHERE ET.status = " . $this->config['status_numb']['Active'] . "
-            ) 
+            )
         ";
-                               
+
         $events = $this->getList( $where );
 
         $this->postAddTimes = false;
@@ -125,8 +125,8 @@ class GlmMembersAdmin_ajax_eventsCalMonthAJAX extends GlmDataEventsTimes
      */
     public function modelAction ($actionData = false)
     {
-        
-        
+
+
         $event_data = [];
         $month = filter_var_array(
             $_REQUEST['month'],
@@ -174,7 +174,7 @@ class GlmMembersAdmin_ajax_eventsCalMonthAJAX extends GlmDataEventsTimes
         $return = array(
 //            'status' => false,       // Assume nothing works
             'events' => $event_data  ,    // Where our events list will go
-            'message' => $message,
+//            'message' => $message,
 //            'times'  => ''
         );