sort ip lists properly
git-svn-id: file:///home/shish/svn/shimmie2/trunk@358 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
parent
6e02af258d
commit
fe28f1abff
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ class UserPage extends Extension {
|
|||
FROM images
|
||||
WHERE owner_id=?
|
||||
GROUP BY owner_ip
|
||||
ORDER BY posted DESC", array($duser->id));
|
||||
ORDER BY MAX(posted) DESC", array($duser->id));
|
||||
return $rows;
|
||||
}
|
||||
private function count_comment_ips($duser) {
|
||||
|
@ -293,7 +293,7 @@ class UserPage extends Extension {
|
|||
FROM comments
|
||||
WHERE owner_id=?
|
||||
GROUP BY owner_ip
|
||||
ORDER BY posted DESC", array($duser->id));
|
||||
ORDER BY MAX(posted) DESC", array($duser->id));
|
||||
return $rows;
|
||||
}
|
||||
// }}}
|
||||
|
|
Reference in a new issue