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

APPPATH/classes/Controller/Page/TopBy.php [ 80 ]

75 		$data = [];
76 		$config = [];
77 		$m_ = Model::Factory('TopBy');
78 		
79 		$this_user = Site::options('user');		
80 		$data['user_id'] = $this_user['id'];
81 		
82 		if( ! empty($this_user['role'])) {
83 			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']))
84 			{	 
85 				$config['user_id'] = $data['user_id'];					
  1. APPPATH/classes/Controller/Page/TopBy.php [ 80 ] » Kohana_Core::error_handler(arguments)

  2. SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Page_TopBy->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