From 4fe7855a70c5749bd4b791983f4344cee9c7456d Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 9 Feb 2013 10:27:25 +0000 Subject: [PATCH] nicer formatting for tag history log --- 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 b6fe5cea..e67b7ac0 100644 --- a/ext/tag_history/main.php +++ b/ext/tag_history/main.php @@ -261,10 +261,11 @@ class Tag_History extends Extension { } if(count($select_code) == 0) { + log_error("tag_history", "Tried to mass revert without any conditions"); return; } - log_info("tag_history", 'Attempting to revert edits where '.implode(" and ", $select_code)." / ".implode(" and ", $select_args)); + log_info("tag_history", 'Attempting to revert edits where '.implode(" and ", $select_code)." (".implode(" / ", $select_args).")"); // Get all the images that the given IP has changed tags on (within the timeframe) that were last editied by the given IP $result = $database->get_col('