RE: SECv2.2 with Credit Class and GVv5.05 for MS2

Farrukh <[email protected]> 11 Sep 2003 09:47:17 -0000
Newsgroups gmane.comp.web.oscommerce.contributions
Message-ID <c3844b9930cf642892d82d6f626cd46c@osCommerce-Forums>
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227791#227791
----------------------------------------------------------------

[quote="ollie53"]Joseph,
How did you get rid of your first error? The one that said:

Warning: Invalid argument supplied for foreach() in /var/www/html/catalog/includes/modules/main_categories.php on line 50

I'm getting the same error! Thanks![/quote]

Just comment out foreach statement

[code]// Traverse category tree
//    foreach ($foo as $key => $value) {
//      if ($foo[$key]['parent'] == $cid) {
//        print "$key, $level, $cid, $cpath<br>";
//        preorder($key, $level+1, $foo, ($level != 0 ? $cpath . $cid . '_' : ''))
//;
//      }
//    }[/code]