mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/15699] Remove unused variable and switch
PHPBB3-15699
This commit is contained in:
parent
b10409cb8a
commit
958a43cb87
1 changed files with 6 additions and 12 deletions
|
@ -148,17 +148,13 @@ class acp_storage
|
||||||
|
|
||||||
if ($action)
|
if ($action)
|
||||||
{
|
{
|
||||||
switch ($action)
|
if ($action == 'progress_bar')
|
||||||
{
|
{
|
||||||
case 'progress_bar':
|
$this->display_progress_bar();
|
||||||
$this->display_progress_bar();
|
}
|
||||||
break;
|
else if ($action != 'update')
|
||||||
case 'update':
|
{
|
||||||
// Just continue
|
trigger_error('NO_ACTION', E_USER_ERROR);
|
||||||
break;
|
|
||||||
default:
|
|
||||||
trigger_error('NO_ACTION', E_USER_ERROR);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!check_link_hash($this->request->variable('hash', ''), 'acp_storage'))
|
if (!check_link_hash($this->request->variable('hash', ''), 'acp_storage'))
|
||||||
|
@ -188,7 +184,6 @@ class acp_storage
|
||||||
AND file_id > " . $this->state['file_index'];
|
AND file_id > " . $this->state['file_index'];
|
||||||
$result = $this->db->sql_query($sql);
|
$result = $this->db->sql_query($sql);
|
||||||
|
|
||||||
$starttime = microtime(true);
|
|
||||||
while ($row = $this->db->sql_fetchrow($result))
|
while ($row = $this->db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
if (!still_on_time())
|
if (!still_on_time())
|
||||||
|
@ -235,7 +230,6 @@ class acp_storage
|
||||||
AND file_id > " . $this->state['file_index'];
|
AND file_id > " . $this->state['file_index'];
|
||||||
$result = $this->db->sql_query($sql);
|
$result = $this->db->sql_query($sql);
|
||||||
|
|
||||||
$starttime = microtime(true);
|
|
||||||
while ($row = $this->db->sql_fetchrow($result))
|
while ($row = $this->db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
if (!still_on_time())
|
if (!still_on_time())
|
||||||
|
|
Loading…
Add table
Reference in a new issue