Notice: Undefined index: 2 in /hsphere/local/home/josignart/josignart.se/catalog/controller/module/welcome.php on line 8
I use Opencart 1.5.2.1 and ThemeGlobal
I just cannot find what is wrong in the code:
<?php
class ControllerModuleWelcome extends Controller {
protected function index($setting) {
$this->language->load('module/welcome');
$this->data['heading_title'] = sprintf($this->language->get('heading_title'), $this->config->get('config_name'));
$this->data['message'] = html_entity_decode($setting['description'][$this->config->get('config_language_id')], ENT_QUOTES, 'UTF-8');
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/welcome.tpl')) {
$this->template = $this->config->get('config_template') . '/template/module/welcome.tpl';
} else {
$this->template = 'default/template/module/welcome.tpl';
}
$this->render();
}
}
?>
Thank you for any help I can get
