diff --git a/identification.php b/identification.php index 388243017..c1699caef 100644 --- a/identification.php +++ b/identification.php @@ -40,7 +40,7 @@ if ( !empty($_GET['redirect']) ) $redirect_to = urldecode($_GET['redirect']); if ( $conf['guest_access'] and !isset($_GET['hide_redirect_error'])) { - $page['errors']['login_page_error'][] = l10n('You are not authorized to access the requested page'); + $page['errors']['login_page_error'] = l10n('You are not authorized to access the requested page'); } } @@ -48,7 +48,7 @@ if (isset($_POST['login'])) { if (!isset($_COOKIE[session_name()])) { - $page['errors']['login_page_error'][] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.'); + $page['errors']['login_page_error'] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.'); } else { diff --git a/register.php b/register.php index 07fa7d047..25cac78ec 100644 --- a/register.php +++ b/register.php @@ -29,7 +29,7 @@ if (isset($_POST['submit'])) if (!verify_ephemeral_key(@$_POST['key'])) { set_status_header(403); - $page['errors']['register_page_error'][] = l10n('Invalid/expired form key'); + $page['errors']['register_page_error'] = l10n('Invalid/expired form key'); } if(empty($_POST['password']))