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') {
// Add "selected" element default false;
reset($categories);
- foreach ( $categories $k => $v ) {
+ foreach ( $categories as $k => $v ) {
$categories[$k]['selected'] = false;
}