X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-points.php;h=f6f5d598404259c617a3f4b489532f8a994e187b;hb=9a7e55141378f5323480fcbf33b033d2750392f4;hp=6b64c1a8436614d77b9eb822feb9498a187f962d;hpb=2df8c1757b41f35e7c5b6a92c52ca96ab1b0bcb8;p=mailer.git diff --git a/inc/modules/member/what-points.php b/inc/modules/member/what-points.php index 6b64c1a843..f6f5d59840 100644 --- a/inc/modules/member/what-points.php +++ b/inc/modules/member/what-points.php @@ -52,7 +52,7 @@ if ((!isExtensionActive('user')) && (!isAdmin())) { } // END - if // Query for referral levels and percents -$result_depths = SQL_QUERY('SELECT `level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__); +$result_depths = SQL_QUERY('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` ORDER BY `level` ASC', __FILE__, __LINE__); // Get total depths $numDepths = SQL_NUMROWS($result_depths); @@ -119,7 +119,7 @@ LIMIT 1', convertZeroToNull($content['level']) ), __FILE__, __LINE__); - // Do we have an entry? + // Is there an entry? if (SQL_NUMROWS($result_points) == 1) { // Load data $content = merge_array($content, SQL_FETCHARRAY($result_points)); @@ -142,7 +142,7 @@ LIMIT 1', SQL_FREERESULT($result_points); // Output row - $OUT .= loadTemplate('member_points_row', true, $content); + $OUT .= loadTemplate('member_points_row', TRUE, $content); } // END - while // Free memory @@ -168,10 +168,10 @@ if ((isExtensionInstalledAndNewer('bonus', '0.2.2')) && (isExtensionActive('bonu $content['bonus_total_points'] = getUserData('turbo_bonus') + getUserData('login_bonus') + getUserData('bonus_ref') + getUserData('bonus_order') + getUserData('bonus_stats'); // Output rows - $content['special_rows'] = loadTemplate('member_points_bonus_rows', true, $content); + $content['special_rows'] = loadTemplate('member_points_bonus_rows', TRUE, $content); } elseif ((isExtensionActive('bonus')) && (!isBonusRallyeActive())) { // Bonus active rallye deactivated - $content['special_rows'] = loadTemplate('member_points_bonus_disabled', true); + $content['special_rows'] = loadTemplate('member_points_bonus_disabled', TRUE); } elseif ((isAdmin()) && (isExtensionInstalledAndOlder('bonus', '0.2.2')) && (isExtensionActive('bonus'))) { // Please upgrade your bonus extension to v0.2.2 or newer! $content['special_rows'] = loadTemplate('member_points_upgrade'); @@ -180,7 +180,7 @@ if ((isExtensionInstalledAndNewer('bonus', '0.2.2')) && (isExtensionActive('bonu // Load final template if (isExtensionActive('user')) { // Load template when required extension is there - loadTemplate('member_points', false, $content); + loadTemplate('member_points', FALSE, $content); } elseif (isAdmin()) { // Missing extension displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=user%}'); @@ -189,6 +189,7 @@ if (isExtensionActive('user')) { displayMessage('{--PROBLEM_POINTS_OVERVIEW_UNAVAILABLE--}'); } +// Is ext-payout installed? if (isExtensionActive('payout')) { // Payput extension is installed and active so we can check if the user has enougth points outputPayoutList($content['part_points'] - getUserData('used_points'));