ErrorException [ Notice ]: Undefined offset: 0

APPPATH/classes/controller/tutor.php [ 44 ]

39         $accountEducations = Model::factory('personal')->getAccountEducations($id);
40         $accountJobs= Model::factory('personal')->getAccountJobs($id);
41         $accountCertificates= Model::factory('personal')->getAccountCertificates($id);
42 
43         $related_category = Cookie::get('subject');
44         $related_category = empty($related_category) ? $accountSubjects[0]['subject'] : $related_category;
45 
46         $result = Model::factory('categories')->accounts(array('num'=>$related_category),1,3,$this->langID,array('not_id'=>$id));
47         $related = $result['query'];
48         $relatedTutors = View::factory('related_tutors')
49                                       ->bind('related',$related)
  1. APPPATH/classes/controller/tutor.php [ 44 ] » Kohana_Core::error_handler(arguments)

  2. {PHP internal call} » Controller_Tutor->action_index()

  3. SYSPATH/classes/kohana/request/client/internal.php [ 118 ] » ReflectionMethod->invoke(arguments)

  4. SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  5. SYSPATH/classes/kohana/request.php [ 1138 ] » Kohana_Request_Client->execute(arguments)

  6. DOCROOT/index.php [ 113 ] » Kohana_Request->execute()

Environment