www/adiumxtras.com 47:a457d6231509: Fix SQL.
commits at adium.im
commits at adium.im
Fri Feb 20 23:10:31 UTC 2015
details: http://hg.adium.im/www/adiumxtras.com/rev/a457d6231509
revision: 47:a457d6231509
branch: adiumxtras.com
author: Thijs Alkemade <me at thijsalkema.de>
date: Sat Feb 21 00:10:25 2015 +0100
Fix SQL.
diffs (12 lines):
diff -r a1ed8316ad19 -r a457d6231509 users.php
--- a/users.php Sat Feb 21 00:09:55 2015 +0100
+++ b/users.php Sat Feb 21 00:10:25 2015 +0100
@@ -356,7 +356,7 @@
$smarty->assign("burninate", (currentUID() && array_search(userLevel(currentUID()), array("Admin", "Developer", "Moderator")) !== TRUE));
$smarty->assign("accounts", $accounts);
$smarty->assign("user", $user);
- $sql->query("SELECT * FROM comments WHERE user_id='%d' ORDER BY posted LIMIT 5 DESC", intval($_GET['user_id']));
+ $sql->query("SELECT * FROM comments WHERE user_id='%d' ORDER BY posted DESC LIMIT 5", intval($_GET['user_id']));
while ($comment = $sql->fetch_assoc()) {
$comments[] = $comment;
}
More information about the commits
mailing list