diff --git a/contrib/image_hash_ban/main.php b/contrib/image_hash_ban/main.php index c054f8bf..1cfaaa87 100644 --- a/contrib/image_hash_ban/main.php +++ b/contrib/image_hash_ban/main.php @@ -133,7 +133,7 @@ class ImageBan implements Extension { $size_i = int_escape($size); $offset_i = int_escape($page)*$size_i; 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;} else {return array();} }