eduardo valle Posted June 28, 2019 Share Posted June 28, 2019 actualice a la version 1.6.1.24 y el modulo megamenu empezo a dar este warning en mega menu., pero el problema es que el menu desde el celular NO funciona 😭 Notice on line 542 en archivo /home/agui4zul7icio/public_html/catalogo/modules/tmmegamenu/classes/MegaMenu.php [8] Undefined index: settings /***** ****** Get menu tab by id ****** $id_tab = tab id ****** $menu_type = is mega or simple menu (default = 0(simple)) ****** $active = get only active items (default false) ****** return all settings for item *****/ public function getMenuItem($id_tab, $menu_type = 0, $active = false) { $query = ''; if ($active) { if ($menu_type) $option = 'is_mega'; else $option = 'is_simple'; $query = 'AND `'.$option.'` = 1'; $sql = 'SELECT * FROM '._DB_PREFIX_.'tmmegamenu WHERE `id_shop` ='.(int)Context::getContext()->shop->id.' AND `id_item` = '.$id_tab.' '.$query; if (!Db::getInstance()->executeS($sql)) return false; } $sql = 'SELECT `settings` FROM '._DB_PREFIX_.'tmmegamenu_items WHERE `id_tab` = '.(int)$id_tab.' AND `type` ='.$menu_type.' AND `is_mega` = 0'; $result = Db::getInstance()->getRow($sql); return explode(',', $result['settings']); AQUI MARCA EL ERROR } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now