Jump to content

Invalid argument supplied for foreach()


psquinn

Recommended Posts

Hi all,

 

Having issue with running a drop down menu in a site i am working on. (new to PHP)

I am getting the error message "Invalid argument supplied for foreach()" . The section of code i am having trouble with is:

 

<?php

foreach( $menus as $menu )

{

$class = empty( $menu->childs ) ? ' class="no-child"' : '';

      ?>

 

Any help you can give is appreciated. Thanks

Link to comment
https://forums.phpfreaks.com/topic/242719-invalid-argument-supplied-for-foreach/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.