]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_bonus.php
New extension added, update activated, TODO extended:
[mailer.git] / inc / modules / admin / what-list_bonus.php
index d95b4de3f27bca0c55dc041bbd953c9b87dddafa..88fe74fd797b93c05dd78db67282aa1566a716a6 100644 (file)
@@ -74,7 +74,7 @@ if ($_CONFIG['bonus_active'] == "Y") {
        }
 
        // Check if at least one is in the active rallye
-       $result = SQL_QUERY_ESC("SELECT userid, email, gender, surname, family, ".$USE." AS points, last_online
+       $result = SQL_QUERY_ESC("SELECT userid AS uid, email, gender, surname, family, ".$USE." AS points, last_online AS last
 FROM "._MYSQL_PREFIX."_user_data
 WHERE status='CONFIRMED' AND ".$USE." > 0".$LAST."
 ORDER BY points DESC, last_online DESC, userid",
@@ -96,6 +96,7 @@ ORDER BY points DESC, last_online DESC, userid",
                        }
 
                        // Prepare content
+                       $content['uid']    = ADMIN_USER_PROFILE_LINK($content['uid']);
                        $content['email']  = CREATE_EMAIL_LINK($content['email'], "user_data");
                        $content['gender'] = TRANSLATE_GENDER($content['gender']);
                        $content['points'] = TRANSLATE_COMMA($content['points']);