ErrorException [ Notice ]: Undefined offset: 0

APPPATH/classes/Model/event.php [ 23 ]

18 		if ($id){
19 			$query = DB::select()
20 				->from('events')
21 				->where('id', '=', $id);
22 			$result = $query->execute()->as_array();
23 			$result = $result[0];
24 		}else{
25 			$result = null;
26 		}
27 		
28 		if ($type == 'ics'){
  1. APPPATH/classes/Model/event.php [ 23 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/Controller/EventTgenerator.php [ 90 ] » Model_Event->get(arguments)

  3. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_EventTgenerator->action_index()

  4. {PHP internal call} » Kohana_Controller->execute()

  5. SYSPATH/classes/Kohana/Request/Client/Internal.php [ 94 ] » ReflectionMethod->invoke(arguments)

  6. SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request(arguments)

  7. SYSPATH/classes/Kohana/Request.php [ 1000 ] » Kohana_Request_Client->execute(arguments)

  8. DOCROOT/index.php [ 119 ] » Kohana_Request->execute()

Environment