diff --git a/webapp/controller/RechargeController.class.php b/webapp/controller/RechargeController.class.php index 278d1f4..18c6ff5 100644 --- a/webapp/controller/RechargeController.class.php +++ b/webapp/controller/RechargeController.class.php @@ -919,7 +919,7 @@ class RechargeController if (!$solorow) { $privilege = new classes\Privilege(); - $medals = metatable\getParameterById(MEDAL_LIMIT) + $privilege->getMedalLimitPlus($account_id); + $medals = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id); $gamelevel = array( 'curlevel' => 1, 'curwave' => 0, diff --git a/webapp/controller/SoloController.class.php b/webapp/controller/SoloController.class.php index 92ba846..84f435b 100644 --- a/webapp/controller/SoloController.class.php +++ b/webapp/controller/SoloController.class.php @@ -87,7 +87,7 @@ class SoloController $medals = 0; $privilege = new classes\Privilege(); - $medalsgrowlimit = metatable\getParameterById(MEDAL_LIMIT) + $privilege->getMedalLimitPlus($account_id); + $medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id); $nowtime = time(); $lastredeem = $nowtime; $level = 1; @@ -811,7 +811,7 @@ class SoloController $curmedals = $solorow['medals'] - $medalcost; $lastredeem = $solorow['lastredeem']; $privilege = new classes\Privilege(); - $medalsgrowlimit = metatable\getParameterById(MEDAL_LIMIT) + $privilege->getMedalLimitPlus($account_id); + $medalsgrowlimit = intval(metatable\getParameterById(MEDAL_LIMIT)) + $privilege->getMedalLimitPlus($account_id); if ($solorow['medals'] >= $medalsgrowlimit && $curmedals < $medalsgrowlimit) { $lastredeem = time(); }