]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/payout_functions.php
Mailer project continued:
[mailer.git] / inc / libs / payout_functions.php
index 82c4048dea845405414c1f7d6b73475ffecb7626..805b9d9ee0efd7ecebf57c1b139f953870c2cd3e 100644 (file)
@@ -45,14 +45,17 @@ function outputPayoutList ($points) {
        // Enougth points?
        if ($points > 0) {
                // Pay this out!
-               $result = SQL_QUERY_ESC("SELECT
-       `id`,`type`,`rate`,`min_points`
+               $result = SQL_QUERY_ESC('SELECT
+       `id`,
+       `type`,
+       `rate`,
+       `min_points`
 FROM
        `{?_MYSQL_PREFIX?}_payout_types`
 WHERE
        %s >= `min_points`
 ORDER BY
-       `type` ASC",
+       `type` ASC',
                        array($points), __FUNCTION__, __LINE__);
                if (!SQL_HASZERONUMS($result)) {
                        // Init output
@@ -96,7 +99,7 @@ function translatePayoutStatus ($status) {
 
 // "Getter" for payoutable user points
 function getPayoutPoints ($userid) {
-       // Do we have cache?
+       // Is there cache?
        if (!isset($GLOBALS[__FUNCTION__][$userid])) {
                // Determine it
                $GLOBALS[__FUNCTION__][$userid] = countSumTotalData($userid, 'user_points', 'points') - getUserUsedPoints($userid);