hawkie Posted December 9, 2011 Posted December 9, 2011 (edited) Hello you smart guys ) Im having a bit of a problem, im getting a Parse error: syntax error, unexpected T_DOUBLE_ARROW in /path_to/includes/boxes/categories.php on line 96 and i can't see what i should do to fix it. Anyone who could help me im desperat. Thanks Helle Edited February 7, 2012 by Jan Zonjee Quote
MrPhil Posted December 9, 2011 Posted December 9, 2011 You've got a botched edit (mod insert?). See $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where " . (YMM_FILTER_CATEGORIES_BOX == 'Yes' ? YMM_get_categories_where(0,$YMM_where) : '') . " c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false; if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } The lines (starting at 96) 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false; don't belong there. I have no idea where they should go. Removing them should get rid of the immediate error, but the real fix is probably that you may need them moved somewhere else in the file. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.