mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
remove all array_push (50% slower than []) + some changes missing for feature:2978
git-svn-id: http://piwigo.org/svn/trunk@25018 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
5
nbm.php
5
nbm.php
@@ -45,15 +45,14 @@ if (isset($_GET['subscribe'])
|
||||
{
|
||||
subscribe_notification_by_mail(false, array($_GET['subscribe']));
|
||||
}
|
||||
else
|
||||
if (isset($_GET['unsubscribe'])
|
||||
else if (isset($_GET['unsubscribe'])
|
||||
and preg_match('/^[A-Za-z0-9]{16}$/', $_GET['unsubscribe']))
|
||||
{
|
||||
unsubscribe_notification_by_mail(false, array($_GET['unsubscribe']));
|
||||
}
|
||||
else
|
||||
{
|
||||
array_push($page['errors'], l10n('Unknown identifier'));
|
||||
$page['errors'][] = l10n('Unknown identifier');
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user