diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 5812856a0..5af5c1862 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -279,9 +279,10 @@ function access_denied() get_root_url().'identification.php?redirect=' .urlencode(urlencode($_SERVER['REQUEST_URI'])); - set_status_header(401); if ( isset($user) and !is_a_guest() ) { + set_status_header(401); + echo ''; echo '
'.l10n('You are not authorized to access the requested page').'
'; echo ''.l10n('Identification').' ';