actually, order by id, which is somewhat chronological

This commit is contained in:
Shish 2008-12-15 22:09:43 -08:00
parent 0a93c3c5ed
commit f9a64f72d3

View file

@ -133,7 +133,7 @@ class ImageBan implements Extension {
$size_i = int_escape($size); $size_i = int_escape($size);
$offset_i = int_escape($page)*$size_i; $offset_i = int_escape($page)*$size_i;
global $database; global $database;
$bans = $database->get_all("SELECT * FROM image_bans ORDER BY hash LIMIT $size_i OFFSET $offset_i"); $bans = $database->get_all("SELECT * FROM image_bans ORDER BY id LIMIT $size_i OFFSET $offset_i");
if($bans) {return $bans;} if($bans) {return $bans;}
else {return array();} else {return array();}
} }