hey guys I need help with this little snipet I can offer you some small reward in bitcoins $$$ and can offer more money if people help me along the way
A PHP Error was encountered
Severity: Notice
Message: Undefined index: parameter
Filename: models/Config_model.php
Line Number: 38
Backtrace:
File: /var/www/html/application/models/Config_model.php
Line: 38
Function: _exception_handler
File: /var/www/html/application/libraries/Bw_config.php
Line: 333
Function: model
File: /var/www/html/application/core/MY_Controller.php
Line: 27
Function: __construct
File: /var/www/html/application/controllers/Welcome.php
Line: 37
Function: __construct
File: /var/www/html/index.php
Line: 282
Function: require_once
the code of config is
public function __construct()
{
parent::__construct();
$query = $this->db->get('config');
if ($query->num_rows() > 0) {
$this->config = $query->result_array();
foreach ($query->result_array() as $config) {
$this->config[$config['parameter']] = $config['value'];
}
} else {
$this->config = FALSE;
}
}