]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-list_links.php
Some SQLs rewritten, unneccessary parameter removed
[mailer.git] / inc / modules / admin / what-list_links.php
index cd186ce69aefffb94bfa4107e675ad3033e3bed9..513997dfc3b2fef763c09396a39b4edb6719e547 100644 (file)
@@ -56,7 +56,7 @@ if (isGetRequestParameterSet('userid')) {
                // @TODO Try to rewrite this to a filter
                if (isExtensionActive('bonus')) {
                        // Load bonus id
-                       $result = SQL_QUERY_ESC("SELECT `stats_id`, `bonus_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `id`",
+                       $result = SQL_QUERY_ESC("SELECT `stats_id`, `bonus_id`, `link_type` FROM `{?_MYSQL_PREFIX?}_user_links` WHERE `userid`=%s ORDER BY `id` ASC",
                                array(bigintval(getRequestParameter('userid'))), __FILE__, __LINE__);
                } else {
                        // Load stats id (2nd will be ignored later! But it is needed for the same fetchrow command)