Fixed: Fatal error on the Admin custom navigations link

This commit is contained in:
vishalsingh.qlo325
2025-07-02 13:31:13 +05:30
parent 569c093b00
commit b13652df6d

View File

@@ -195,10 +195,10 @@ class AdminCustomNavigationLinkSettingController extends ModuleAdminController
$themePages = array();
if (Validate::isLoadedObject($objTheme = new Theme($this->context->shop->id_theme))) {
if ($themePages = $objTheme->getMetas()) {
foreach ($themePages as &$page) {
foreach ($themePages as $themePagekey => $page) {
if ($page['id_meta']) {
if (Validate::isLoadedObject($objMeta = new Meta($page['id_meta']))) {
$page['page'] = $objMeta->page;
$themePages[$themePagekey]['page'] = $objMeta->page;
}
}
}