From 122cbf7567e9b82e9f54abbc4cb0fb8aea9bdf7e Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Thu, 10 Apr 2025 10:12:59 +0200 Subject: [PATCH] relates #2345 remove array fix warning with error tpl error introduced with new Standard pages, Errors messages in themes couldn't display du to extra array added --- identification.php | 4 ++-- register.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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']))