X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-payout.php;h=49e1636cf752868ec687fa294ac9e031696cfaa7;hb=d495bd859975d08ee459d03c9b1cd51dd9b9304d;hp=763187ed6a25ceb31657524be57323d2a3a976fb;hpb=8bce60d8ab95702435c308a3f3ca50c78eeea407;p=mailer.git diff --git a/inc/modules/member/what-payout.php b/inc/modules/member/what-payout.php index 763187ed6a..49e1636cf7 100644 --- a/inc/modules/member/what-payout.php +++ b/inc/modules/member/what-payout.php @@ -54,7 +54,7 @@ if ((!isExtensionActive('payout')) && (!isAdmin())) { } // END - if $result_depths = SQL_QUERY("SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY level", __FILE__, __LINE__); -$totalPoints = 0; +$totalPoints = '0'; while ($content = SQL_FETCHARRAY($result_depths)) { // Load referal points $result_points = SQL_QUERY_ESC("SELECT `points` FROM `{?_MYSQL_PREFIX?}_user_points` WHERE `userid`=%s AND `ref_depth`='%s' LIMIT 1", @@ -179,10 +179,10 @@ ORDER BY // Calculate maximum value $max = round($totalPoints * $content['rate'] - 0.5); - $PAY_MAX = 0; + $PAY_MAX = '0'; // Calulcate points from submitted amount - $points = 0; + $points = '0'; if (isPostRequestElementSet('payout')) { $points = bigintval(postRequestElement('payout')) / $content['rate']; $PAY_MAX = $max / $content['rate'];