From: Steve Sutton Date: Tue, 12 Feb 2019 18:25:38 +0000 (-0500) Subject: Update for php error X-Git-Tag: v1.7.23^2~13 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=25793ecc31330758d245ac9287845e6899528b78;p=WP-Plugins%2Fglm-member-db-events.git Update for php error fix foreach update --- diff --git a/models/admin/events/list.php b/models/admin/events/list.php index b153f8d..8521691 100644 --- a/models/admin/events/list.php +++ b/models/admin/events/list.php @@ -501,7 +501,7 @@ class GlmMembersAdmin_events_list extends GlmDataEvents if (isset($_REQUEST['locID'])) { // For each location - foreach ( $_REQUEST['locID'] $id => $locID ) { + foreach ( $_REQUEST['locID'] as $id => $locID ) { // Check for new cities in this location and if so use the new city real ID if (isset($_REQUEST[$ocID.'_city']) && $_REQUEST[$locID.'_city'][0] == 'n') { @@ -708,7 +708,7 @@ class GlmMembersAdmin_events_list extends GlmDataEvents // Add "selected" element default false; reset($categories); - foreach ( $categories $k => $v ) { + foreach ( $categories as $k => $v ) { $categories[$k]['selected'] = false; }