Allow programs to determine whether a member has points without calling isExistsPoint() and getPoint() separately

포인트 정보가 아예 없는 경우와 0포인트가 있는 경우를 구분하기 위해
isExistsPoint()와 getPoint()를 각각 호출하지 않아도 되도록
getPoint()에 3번째 인자 $exists를 추가함
This commit is contained in:
Kijin Sung 2017-12-21 15:24:55 +09:00
parent 01ee23b7d9
commit 3e1d223962
2 changed files with 8 additions and 3 deletions

View file

@ -43,8 +43,8 @@ function pointLevelIconTrans($matches, $addon_info)
$oPointModel = &$GLOBALS['_pointModel'];
// Get points
$point = $oPointModel->getPoint($member_srl);
if(!$point)
$point = $oPointModel->getPoint($member_srl, false, $exists);
if(!$exists)
{
return $matches[0];
}