From: Chuck Scott Date: Mon, 28 Aug 2017 20:05:17 +0000 (-0400) Subject: Fixed problem with incorrectly sending array rather than a simple value to to wpdb... X-Git-Tag: v1.0.0^2~437 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=580ca75b734380bc4cbf449a62404cf0a522bb60;p=WP-Plugins%2Fglm-member-db-registrations.git Fixed problem with incorrectly sending array rather than a simple value to to wpdb->insert --- diff --git a/models/admin/registrations/event.php b/models/admin/registrations/event.php index a2c74ed..94e8b49 100644 --- a/models/admin/registrations/event.php +++ b/models/admin/registrations/event.php @@ -277,7 +277,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent if (!$regEventLastTime || $regEventLastTime['timestamp'] > $last ) { $regEventLastTime = $last; } - + // Check all event times for matching reg event times foreach ($v['times'] as $tk=>$tv) { @@ -296,7 +296,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent 'start_datetime' => $sTime, 'end_datetime' => $eTime, 'all_day' => $tv['all_day']['value'], - 'attendees' => $regEvent['attendees'], + 'attendees' => $regEvent['attendees']['value'], 'attendee_max' => $regEvent['attendee_max'], 'attendee_count' => 0, 'attendees_pending' => 0, @@ -327,7 +327,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent '%f', // total_charges '%f', // total_discounts '%f' // total_payments - ) + ) ); } } @@ -336,7 +336,7 @@ class GlmMembersAdmin_registrations_event extends GlmDataRegistrationsRegEvent } } } - + if (!$haveRegEvent) { $reason = 'Unable to load registration event data or registration event not selected.'; } diff --git a/views/admin/registrations/list.html b/views/admin/registrations/list.html index d9deace..0e6c8b9 100644 --- a/views/admin/registrations/list.html +++ b/views/admin/registrations/list.html @@ -10,7 +10,7 @@

List of Registration Events

-
+
Text Search: