adding condition for instant_event to check for start time only
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jul 2016 17:51:01 +0000 (13:51 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 12 Jul 2016 17:51:01 +0000 (13:51 -0400)
models/admin/management/events.php

index 88a0f76..21e4d37 100644 (file)
@@ -1632,6 +1632,12 @@ class GlmMembersAdmin_management_events extends GlmDataEventsManagement
                                        $to_date           = $ending_date->format( 'Y-m-d' );
                                }
                 $all_day       = $event_data['allday'];
+                
+                // instant event is an event with no end time
+                $start_time_only = $event_data['instant_event'];
+                if($start_time_only){
+                    $etime = $btime;
+                }
                 // for the recurrences part
                 $recur_data = array(
                     'event'                => $event_id,