From 3aed2abec760cb0266df6bb5de67113846bfa8df Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 12 Oct 2015 19:17:16 +0100 Subject: [PATCH] don't complain if one image in a bulk revert doesn't exist --- ext/tag_history/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/tag_history/main.php b/ext/tag_history/main.php index fe4b807a..eefe8cd0 100644 --- a/ext/tag_history/main.php +++ b/ext/tag_history/main.php @@ -329,7 +329,8 @@ class Tag_History extends Extension { $image = Image::by_id($stored_image_id); if ( ! $image instanceof Image) { - throw new ImageDoesNotExist("Error: cannot find any image with the ID = ". $stored_image_id); + continue; + //throw new ImageDoesNotExist("Error: cannot find any image with the ID = ". $stored_image_id); } log_debug("tag_history", 'Reverting tags of Image #'.$stored_image_id.' to ['.$stored_tags.']');