ErrorException [ Notice ]: Undefined index: id_admin

APPPATH/classes/Controller/Replay.php [ 74 ]

69         $replay = Model::factory('ModReplay')->getReplay($id);        
70         $id_admin = 0;
71 
72         if ($user) $id_admin = $user->id;
73 
74         if (($replay['id_admin'] == $id_admin) || ($replay['public']==1)) {
75             $this->template->set('startData', Model::factory('ModReplay')->getStartData($replay['id_game']));
76             $this->template->set('replay', $this->getPrepareLogs($replay));
77             $this->template->set('seconds', $this->getGameTimeInSeconds($replay));
78             $this->template->set('lat', $replay['lat']);
79             $this->template->set('lng', $replay['lng']);
  1. APPPATH/classes/Controller/Replay.php [ 74 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Replay->action_view()

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

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

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

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

  7. DOCROOT/index.php [ 125 ] » Kohana_Request->execute()

Environment