mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Fix unnecessary query from point level icon addon
This commit is contained in:
parent
3fbcc3da9a
commit
40adc7f6dc
1 changed files with 2 additions and 3 deletions
|
|
@ -43,13 +43,12 @@ function pointLevelIconTrans($matches, $addon_info)
|
|||
$oPointModel = &$GLOBALS['_pointModel'];
|
||||
|
||||
// Get points
|
||||
if(!$oPointModel->isExistsPoint($member_srl))
|
||||
$point = $oPointModel->getPoint($member_srl);
|
||||
if(!$point)
|
||||
{
|
||||
return $matches[0];
|
||||
}
|
||||
|
||||
$point = $oPointModel->getPoint($member_srl);
|
||||
|
||||
// Get level
|
||||
$level = $oPointModel->getLevel($point, $config->level_step);
|
||||
$text = $matches[5];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue