Invalid argument supplied for foreach()
-
Hello,
Since I did update my wordpress, i get the followign error:
Invalid argument supplied for foreach()..etc.. on line 41.The code on line 41 is:
foreach($restaurants as $restaurant){ if ($restaurant['restaurant_poperty_photo'][1]['t']==""){ $foto='https://www.gershon-lehrer.be/blog/wp-content/uploads/noPhotoAvailable.png'; } else {$foto=$restaurant['restaurant_poperty_name'][1];}; echo "<b>Photo:</b><img src='".$foto."'><br />"; echo "<b>Name:</b>".$restaurant['restaurant_poperty_name'][1]."<br />"; echo "<b>Address:</b>".$restaurant['restaurant_poperty_address'][1]."<br />"; echo "<b>City:</b>".$restaurant['restaurant_city'][1]."<br />"; echo "<b>Country:</b>".$restaurant['restaurant_country'][1]."<br />"; echo "<b>Phone Number:</b>".$restaurant['restaurant_poperty_phone'][1]."<br />"; echo "<b>Website:</b><a href='".$restaurant['restaurant_poperty_url'][1]."' target=\'_blank\'>".$restaurant['restaurant_poperty_url'][1]."</a><br />"; echo "<b>e-mail address:</b><a href='mailto:".$restaurant['restaurant_poperty_e_mail'][1]."'>".$restaurant['restaurant_poperty_e_mail'][1]."</a><br />"; echo "<b>Rate:</b>".$restaurant['restaurant_poperty_rate'][1]."<br />"; echo "<b>Comments:</b>".$restaurant['restaurant_poperty_comments'][1]."<br />"; echo "<b>Map:<b><br>".GeoMashup::map('height=400&width=700&zoom=13'); }
Any tips?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Invalid argument supplied for foreach()’ is closed to new replies.