make sure mass_tag_edit reads high > low id if default order is different

This commit is contained in:
Daku 2014-03-26 08:05:05 +00:00
parent 76526f371c
commit 994652c3f7

View File

@ -266,9 +266,9 @@ class TagEdit extends Extension {
// search returns high-ids first, so we want to look
// at images with lower IDs than the previous.
$search_forward = $search_set;
$search_forward[] = "order=id_desc"; //Default order can be changed, so make sure we order high > low ID
if($last_id >= 0){
$search_forward[] = "id<$last_id";
$search_forward[] = "order=id_desc"; //Force high > low ID search
}
$images = Image::find_images(0, 100, $search_forward);