X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Flibs%2Frefback_functions.php;h=82746fe51dc5e5d6d03c8e0de926f16604682f87;hb=f2edf32502b2774dc17ef419a2e6a1c60e361c0a;hp=7547757ff713a3c03acc1bb0f6ecc0ddbc3a102e;hpb=b50d521ee7818a82eb2fb38f17cc6f2675747971;p=mailer.git diff --git a/inc/libs/refback_functions.php b/inc/libs/refback_functions.php index 7547757ff7..82746fe51d 100644 --- a/inc/libs/refback_functions.php +++ b/inc/libs/refback_functions.php @@ -50,7 +50,7 @@ function addRefbackPoints ($userid, $ref, $points, $ref_points) { $return = $ref_points; // Get all ref levels - $result_refs = SQL_QUERY('SELECT `level`,`percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0 ORDER BY `level` ASC', + $result_refs = SQL_QUERY('SELECT `level`, `percents` FROM `{?_MYSQL_PREFIX?}_refdepths` WHERE `level` > 0 ORDER BY `level` ASC', __FUNCTION__, __LINE__); // "Walk" through all level @@ -274,7 +274,7 @@ function getArrayFromUserRefbackData ($id) { $id = bigintval($id); // Get entry from database - $result = SQL_QUERY_ESC("SELECT `id`,`userid`,`refid`,`refback_percents`,`level`,`refback_points` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `id`=%s AND `userid`=%s LIMIT 1", + $result = SQL_QUERY_ESC("SELECT `id`, `userid`, `refid`, `refback_percents`, `level`, `refback_points` FROM `{?_MYSQL_PREFIX?}_user_refs` WHERE `id`=%s AND `userid`=%s LIMIT 1", array($id, getMemberId()), __FUNCTION__, __LINE__); // Is there an entry? @@ -354,7 +354,7 @@ function updateMemberRefbackPercents ($id, $percents, $note) { sendAdminNotification('{--ADMIN_REFBACK_SUBJECT--}', 'admin_refback', $content, $content['refid']); // All fine! - $status['ok'] = true; + $status['ok'] = TRUE; // Return status array //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'id=' . $id . ',percents=' . $percents . ' - EXIT!');