X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-payout.php;h=c7eb1fbaf6a3546b89e5fe067497e0851d79cfc7;hb=f8ff2234e23686a87ffe0715a1515703dbde3c86;hp=87249d1e4f9cad4e1d525f2c2cc22e21c0154022;hpb=fff3e2abc8ffb5a086fbf0f3a7d6b9f2ff5ddaed;p=mailer.git diff --git a/inc/modules/member/what-payout.php b/inc/modules/member/what-payout.php index 87249d1e4f..c7eb1fbaf6 100644 --- a/inc/modules/member/what-payout.php +++ b/inc/modules/member/what-payout.php @@ -38,7 +38,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) { require($INC); } elseif (!IS_LOGGED_IN()) { // Not logged in - LOAD_URL(URL."/modules.php?module=index"); + LOAD_URL("modules.php?module=index"); } elseif ((!EXT_IS_ACTIVE("payout")) && (!IS_ADMIN())) { // Extension "payout" is not active ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "payout"); @@ -53,13 +53,13 @@ $TPTS = "0"; while (list($lvl, $per) = SQL_FETCHROW($result_depths)) { // Load referral points - $result_points = SQL_QUERY_ESC("SELECT points FROM "._MYSQL_PREFIX."_user_points WHERE userid=%d AND ref_depth='%s' LIMIT 1", + $result_points = SQL_QUERY_ESC("SELECT points FROM "._MYSQL_PREFIX."_user_points WHERE userid=%d AND ref_depth=%d LIMIT 1", array($GLOBALS['userid'], bigintval($lvl)), __FILE__, __LINE__); if (SQL_NUMROWS($result_points) == 1) { - list($POINTS) = SQL_FETCHROW($result_points); + list($points) = SQL_FETCHROW($result_points); SQL_FREERESULT($result_points); - $TPTS += $POINTS; + $TPTS += $points; } }