ErrorException [ Notice ]: Trying to access array offset on value of type bool

APPPATH/classes/Controller/Page/ComFactors.php [ 66 ]

61 		$data = [];
62 		
63 		$m_ = Model::factory('Comfactors');
64 		$config = [];
65 		$this_user = Site::options('user');
66 		$data['user_id'] = $this_user['id'];
67 				
68 		if( ! empty($this_user['role'])) {
69 			if( (in_array(5, $this_user['role']) || in_array(4, $this_user['role']) || in_array(1, $this_user['role'])) && ! in_array(2, $this_user['role']))
70 			{	 
71 				$config['user_id'] = $data['user_id'];					
  1. APPPATH/classes/Controller/Page/ComFactors.php [ 66 ] » Kohana_Core::error_handler(arguments)

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

  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 [ 121 ] » Kohana_Request->execute()

Environment