1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/15699] Fix messages

PHPBB3-15699
This commit is contained in:
Rubén Calvo
2018-08-01 21:24:45 +02:00
committed by Ruben Calvo
parent 8cb5ea8e20
commit 9c51b3099a
2 changed files with 7 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ class acp_storage
break;
}
if (!check_form_key($form_key) || !check_link_hash($this->request->variable('hash', ''), 'acp_storage'))
if (!check_link_hash($this->request->variable('hash', ''), 'acp_storage'))
{
trigger_error($this->user->lang('FORM_INVALID') . adm_back_link($this->u_action), E_USER_WARNING);
}
@@ -163,8 +163,9 @@ class acp_storage
foreach ($this->state['storages'] as $storage_name => $storage_options)
{
// Skip storages that have already moved files
if ($this->state['storage_index'] > $i++)
if ($this->state['storage_index'] > $i)
{
$i++;
continue;
}
@@ -209,8 +210,9 @@ class acp_storage
foreach ($this->state['storages'] as $storage_name => $storage_options)
{
// Skip storages that have already moved files
if ($this->state['remove_storage_index'] > $i++)
if ($this->state['remove_storage_index'] > $i)
{
$i++;
continue;
}