initializing old_event_status variable in the model to avoid notices
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 25 Jul 2017 18:35:37 +0000 (14:35 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 25 Jul 2017 18:35:37 +0000 (14:35 -0400)
setting the old_event_status to false initially so that php doesn't throw any
notices

models/admin/events/list.php

index 7e6281b..c8e367f 100644 (file)
@@ -142,6 +142,7 @@ class GlmMembersAdmin_events_list extends GlmDataEvents
         $limit            = 20;        // Set to the number of listings per page
         $namesList        = false;
         $enable_members   = $this->config['settings']['enable_members'];
+        $old_event_status = false;
 
         // Load Notifications from the helper classes
         include_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH . '/helper/notification.php';