mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 21:27:25 +02:00
Merge pull request #4735 from Jimmi08/rank-issue-for-first-level
Fixes #4670 ranks issue for first level
This commit is contained in:
@@ -235,7 +235,7 @@ class e_ranks
|
|||||||
|
|
||||||
$lastRank = count($this->ranks['data']);
|
$lastRank = count($this->ranks['data']);
|
||||||
$rank = false;
|
$rank = false;
|
||||||
if($level <= varset($this->ranks['data'][0]['thresh']))
|
if($level <= varset($this->ranks['data'][1]['thresh']))
|
||||||
{
|
{
|
||||||
$rank = 1;
|
$rank = 1;
|
||||||
}
|
}
|
||||||
@@ -245,7 +245,7 @@ class e_ranks
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
for($i=0; $i < $lastRank; $i++)
|
for($i=1; $i <= $lastRank; $i++)
|
||||||
{
|
{
|
||||||
if($level >= $this->ranks['data'][$i]['thresh'] && $level < $this->ranks['data'][($i+1)]['thresh'])
|
if($level >= $this->ranks['data'][$i]['thresh'] && $level < $this->ranks['data'][($i+1)]['thresh'])
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user