diff --git a/classes/Tab.php b/classes/Tab.php index cf68e32fa..e9a1478ac 100644 --- a/classes/Tab.php +++ b/classes/Tab.php @@ -505,7 +505,7 @@ class TabCore extends ObjectModel { $admin_tab = Tab::getTab((int)Context::getContext()->language->id, $id_tab); $tabs[] = $admin_tab; - if ($admin_tab['id_parent'] > 0) { + if (isset($admin_tab['id_parent']) && !empty($admin_tab['id_parent'])) { $tabs = Tab::recursiveTab($admin_tab['id_parent'], $tabs); } return $tabs; diff --git a/classes/controller/AdminController.php b/classes/controller/AdminController.php index 12bef797f..f25115eb2 100644 --- a/classes/controller/AdminController.php +++ b/classes/controller/AdminController.php @@ -666,7 +666,7 @@ class AdminControllerCore extends Controller )); /* BEGIN - Backward compatibility < 1.6.0.3 */ - $this->breadcrumbs[] = $tabs[0]['name']; + $this->breadcrumbs[] = isset($tabs[0]['name']) ? $tabs[0]['name'] : '' ; $navigation_pipe = (Configuration::get('PS_NAVIGATION_PIPE') ? Configuration::get('PS_NAVIGATION_PIPE') : '>'); $this->context->smarty->assign('navigationPipe', $navigation_pipe); /* END - Backward compatibility < 1.6.0.3 */