aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/cache/service.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/cache/service.php')
-rw-r--r--phpBB/phpbb/cache/service.php21
1 files changed, 7 insertions, 14 deletions
diff --git a/phpBB/phpbb/cache/service.php b/phpBB/phpbb/cache/service.php
index a86e8c31de..b06462fcf0 100644
--- a/phpBB/phpbb/cache/service.php
+++ b/phpBB/phpbb/cache/service.php
@@ -166,21 +166,14 @@ class service
$ranks = array();
while ($row = $this->db->sql_fetchrow($result))
{
- foreach ($row as $field => $data)
+ if ($row['rank_special'])
{
- if ($field == 'rank_special' || ($row['rank_special'] && $field == 'rank_min'))
- {
- continue;
- }
-
- if ($row['rank_special'])
- {
- $ranks['special'][$row['rank_id']][$field] = $data;
- }
- else
- {
- $ranks['normal'][$row['rank_id']][$field] = $data;
- }
+ unset($row['rank_min']);
+ $ranks['special'][$row['rank_id']] = $row;
+ }
+ else
+ {
+ $ranks['normal'][$row['rank_id']] = $row;
}
}
$this->db->sql_freeresult($result);