ErrorException [ Notice ]: Undefined offset: 0

FCPATH/modules/news/controllers/news.php [ 234 ]

229 //        exit();
230         if (!empty($output['list_promotion']) && $output['list_promotion']['total'] > 0) {
231             $output['pagination'] = $this->pagination->create_links();
232         }
233 
234         $output['data_info'] = $this->news_model->get_news_detail($output['list_promotion']['result'][0]->id, $this->curent_lang_id, 'front');
235         $output['category_list'] = $this->news_model->get_category_list('front', $this->curent_lang_id);
236 //        $output['current_news_category'] = $this->news_model->get_news_category_detail($output['data_info']->news_category_id, $this->curent_lang_id, 'front');
237         $output['seo_title'] = isset($output['data_info']->seo_title) && !empty($output['data_info']->seo_title) ? $output['data_info']->seo_title : $this->lang->line('News & Promotion');
238         $output['seo_keyword'] = isset($output['data_info']->seo_keyword) && !empty($output['data_info']->seo_keyword) ? $output['data_info']->seo_keyword : '';
239         $output['seo_description'] = isset($output['data_info']->seo_description) && !empty($output['data_info']->seo_description) ? $output['data_info']->seo_description : '';
  1. FCPATH/modules/news/controllers/news.php [ 234 ] » MY_Exceptions::error_handler(arguments)

  2. {PHP internal call} » news->promotion_list(arguments)

  3. FCPATH/modules/news/controllers/news.php [ 32 ] » call_user_func_array(arguments)

  4. FCPATH/system/core/CodeIgniter.php [ 325 ] » news->_remap(arguments)

  5. FCPATH/index.php [ 224 ] » require_once(arguments)

Environment

ErrorException [ Notice ]: Trying to get property of non-object

FCPATH/modules/news/controllers/news.php [ 234 ]

229 //        exit();
230         if (!empty($output['list_promotion']) && $output['list_promotion']['total'] > 0) {
231             $output['pagination'] = $this->pagination->create_links();
232         }
233 
234         $output['data_info'] = $this->news_model->get_news_detail($output['list_promotion']['result'][0]->id, $this->curent_lang_id, 'front');
235         $output['category_list'] = $this->news_model->get_category_list('front', $this->curent_lang_id);
236 //        $output['current_news_category'] = $this->news_model->get_news_category_detail($output['data_info']->news_category_id, $this->curent_lang_id, 'front');
237         $output['seo_title'] = isset($output['data_info']->seo_title) && !empty($output['data_info']->seo_title) ? $output['data_info']->seo_title : $this->lang->line('News & Promotion');
238         $output['seo_keyword'] = isset($output['data_info']->seo_keyword) && !empty($output['data_info']->seo_keyword) ? $output['data_info']->seo_keyword : '';
239         $output['seo_description'] = isset($output['data_info']->seo_description) && !empty($output['data_info']->seo_description) ? $output['data_info']->seo_description : '';
  1. FCPATH/modules/news/controllers/news.php [ 234 ] » MY_Exceptions::error_handler(arguments)