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

APPPATH/classes/Controller/Page/Visibility.php [ 133 ]

128 	{		
129 		$data = [];		
130 		$m_ = Model::Factory('Visibility');
131 		
132 		$this_user = Site::options('user');
133 		$data['user_id'] = $this_user['id'];
134 		
135 		$config = [];
136 				
137 		if( ! empty($this_user['role'])) {
138 			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']))
  1. APPPATH/classes/Controller/Page/Visibility.php [ 133 ] » Kohana_Core::error_handler(arguments)

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