Fixed: Undefined index issues in the admin controller and tab class
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user