Update for php error
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Feb 2019 18:25:38 +0000 (13:25 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Feb 2019 18:25:38 +0000 (13:25 -0500)
fix foreach update

models/admin/events/list.php

index b153f8d..8521691 100644 (file)
@@ -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;
                 }