12-15-2014, 08:39 PM
I am encountering an Error:
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: helpers/ompty_helper.php
Line Number: 9
Here's line Numer 9: "$resto_web_apps_info = $resto_web_apps_info[0]->$structure;"
The model contains:
function get_resto_web_apps_info($general_id, $web_app_name, $structure){
return $this->db->select('rwi.'.$structure)
->from('restaurant_web_apps_info as rwi')
->join('restaurant_web_apps as r', 'r.id = rwi.restaurant_web_apps_id', 'left outer')
->where('r.web_app_name', $web_app_name)
->where('rwi.general_restaurant_info_id', $general_id)
->get()
->result();
}
I've been calling this function multiple times but I get this only in one part of my code. What could be the possible problem?
A PHP Error was encountered
Severity: Notice
Message: Undefined offset: 0
Filename: helpers/ompty_helper.php
Line Number: 9
Here's line Numer 9: "$resto_web_apps_info = $resto_web_apps_info[0]->$structure;"
The model contains:
function get_resto_web_apps_info($general_id, $web_app_name, $structure){
return $this->db->select('rwi.'.$structure)
->from('restaurant_web_apps_info as rwi')
->join('restaurant_web_apps as r', 'r.id = rwi.restaurant_web_apps_id', 'left outer')
->where('r.web_app_name', $web_app_name)
->where('rwi.general_restaurant_info_id', $general_id)
->get()
->result();
}
I've been calling this function multiple times but I get this only in one part of my code. What could be the possible problem?