Update the time.ly import again
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Jun 2016 18:38:05 +0000 (14:38 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 16 Jun 2016 18:38:05 +0000 (14:38 -0400)
Need to initalize the $stamp variable for each new event.

models/admin/management/events.php

index d22cc99..0916eb7 100644 (file)
@@ -1447,8 +1447,9 @@ class GlmMembersAdmin_management_events extends GlmDataEventsManagement
                         }
                     }
                     if(!empty($custom_times)){
+                        $stamp = array();
                         date_default_timezone_set('UTC');
-                        $serialized_custom_times = serialize($custom_times);
+                        //$serialized_custom_times = serialize($custom_times);
                         foreach($custom_times as $custom){
                             $convert = date('U',strtotime($custom));
                             $stamp[] = date('Y-m-d', $convert);