Fixed: Undefined index issues in the admin controller and tab class

This commit is contained in:
vishalsingh.qlo325
2025-02-11 11:49:59 +05:30
parent 950b37ed1c
commit 2e6e7cf3c4
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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 */