Fixed Undefined array key warning for invalid conf query parameter

Co-authored-by: Name <sumit201@webkul.in>
This commit is contained in:
azhar bhat
2026-06-17 16:43:32 +05:30
parent c0eee98fb8
commit 7e0027e004

View File

@@ -2010,7 +2010,9 @@ class AdminControllerCore extends Controller
}
if ($conf = Tools::getValue('conf')) {
$this->context->smarty->assign('conf', $this->json ? json_encode($this->_conf[(int)$conf]) : $this->_conf[(int)$conf]);
if (isset($this->_conf[$conf])) {
$this->context->smarty->assign('conf', $this->json ? json_encode($this->_conf[(int)$conf]) : $this->_conf[(int)$conf]);
}
}
foreach (array('errors', 'warnings', 'informations', 'confirmations') as $type) {