Hi;
I have a problem with the category boxes. I get the following error message:
Warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/xxxxx/public_html/includes/boxes/categories.php on line 136
Warning: Invalid argument supplied for foreach() in /home/xxxxx/domains/xxxxx/public_html/includes/boxes/categories.php on line 144
The code in these lines is:
$cat_subs = array();
foreach($categories_start as $key => $value) {
if(strstr($key, '_' . $parentID . '_E')) {
$cat_subs[$parentID][] = substr($key, 2, strpos($key, "_", 2) - 2);
}
}
// if (!isset($_GET['cPath'])) {
foreach ($cat_subs[$parentID] as $v) { //$categories = tep_db_fetch_array($categories_query)
$categories = $categories_start['S_' . $v . '_' . $parentID . '_E'];
I have not modified the code included in the template to have multiple categories and subcategories.
Could you help me, please?