// some errors the cookie should be deleted and others it should remain untouched.
// also set the error on the session object.
- $this->session->set_error($session_connection->get_error());
+ $errror = $session_connection->get_error();
+ $this->session->set_error($error);
unset($session_connection);
$this->session->set_session_id(NULL);
// some errors the cookie should be deleted and others it should remain untouched.
// also set the error on the session object.
- $this->session->set_error($session_loaded->get_error());
+ $error = $session_loaded->get_error();
+ $this->session->set_error($error);
unset($session_loaded);
$this->session->set_session_id(NULL);
}
if (is_null($this->path_user_id)) {
- $this->path_user = $this->session->get_user_current();
- $this->path_user_id = $this->path_user->get_id()->get_value_exact();
+ $path_user = $this->session->get_user_current();
+ if ($path_user instanceof c_base_users_user) {
+ $this->path_user = $path_user;
+ $this->path_user_id = $this->path_user->get_id()->get_value_exact();
+ }
+ else {
+ if ($path_user->has_error()) {
+ $executed->set_error($path_user->get_error());
+ }
+
+ $this->path_user = FALSE;
+ }
+ unset($path_user);
// do not allow view access to reserved/special accounts.
if ($this->path_user_id < static::ID_USER_MINIMUM) {