ce7 8 Posted July 3, 2020 hi I am trying to display the image folder tree into dropdown menu. echo tep_draw_pull_down_menu('sub_directory', showSub($dir2, $sub)); foreach( $it as $key => $temp ) { ...... } the error message indicate that @admin/includes/function/html_output.php foreach inside the tep_draw_pull_down_menu() has Invalid argument supplied... Share this post Link to post Share on other sites
♥ecartz 682 Posted July 3, 2020 10 hours ago, ce7 said: showSub($dir2, $sub) It's telling you that that function is not returning an array. It would need to consistently return an array to be used that way. 1 ce7 reacted to this Always back up before making changes. Share this post Link to post Share on other sites