diff options
Diffstat (limited to 'identification.php')
-rw-r--r-- | identification.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/identification.php b/identification.php index 9c3de083e..c9fc3605b 100644 --- a/identification.php +++ b/identification.php @@ -2,7 +2,7 @@ // +-----------------------------------------------------------------------+ // | Piwigo - a PHP based photo gallery | // +-----------------------------------------------------------------------+ -// | Copyright(C) 2008-2013 Piwigo Team http://piwigo.org | +// | Copyright(C) 2008-2014 Piwigo Team http://piwigo.org | // | Copyright(C) 2003-2008 PhpWebGallery Team http://phpwebgallery.net | // | Copyright(C) 2002-2003 Pierrick LE GALL http://le-gall.net/pierrick | // +-----------------------------------------------------------------------+ @@ -39,7 +39,7 @@ if ( !empty($_GET['redirect']) ) $redirect_to = urldecode($_GET['redirect']); if ( is_a_guest() ) { - array_push($page['errors'], l10n('You are not authorized to access the requested page')); + $page['errors'][] = l10n('You are not authorized to access the requested page'); } } @@ -47,10 +47,7 @@ if (isset($_POST['login'])) { if (!isset($_COOKIE[session_name()])) { - array_push( - $page['errors'], - l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.') - ); + $page['errors'][] = l10n('Cookies are blocked or not supported by your browser. You must enable cookies to connect.'); } else { @@ -68,7 +65,7 @@ if (isset($_POST['login'])) } else { - array_push($page['errors'], l10n('Invalid password!') ); + $page['errors'][] = l10n('Invalid password!'); } } } |