]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-bonus.php
Earning subscriptions introduced (unfinished):
[mailer.git] / inc / modules / member / what-bonus.php
index b505ddd0abe13e90cc0b38a1c492ed98577e5bfc..00fa5ac33bffff4ccc6ac2a900d3e174e5a96491 100644 (file)
@@ -69,7 +69,9 @@ if ((isExtensionActive('autopurge')) && ((getApInactiveSince() > 0))) {
 
 // Let's check if there are some points left we can 'pay'...
 $result = SQL_QUERY_ESC("SELECT
-       `userid`, ".$USE." AS `points`,`last_online`
+       `userid`,
+       ".$USE." AS `points`,
+       `last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
@@ -78,8 +80,8 @@ WHERE
        " . $lastOnline . "
 ORDER BY
        `points` DESC,
-       last_online DESC,
-       userid ASC
+       `last_online` DESC,
+       `userid` ASC
 LIMIT {?bonus_ranks?}",
        array(
                $ONLINE