From dadcb809ba78c9fc7dd6826cf0902210c90d7c03 Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 26 Feb 2012 15:24:02 +0000 Subject: [PATCH] don't log for null->null --- ext/image/main.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ext/image/main.php b/ext/image/main.php index 9446a3e3..15b08f87 100644 --- a/ext/image/main.php +++ b/ext/image/main.php @@ -346,7 +346,10 @@ class ImageIO extends Extension { $tags_to_set = $image->get_tag_array(); $image->tag_array = array(); send_event(new TagSetEvent($image, $tags_to_set)); - log_info("core-image", "Source for Image #{$image->id} set to: {$image->source}"); + + if($image->source) { + log_info("core-image", "Source for Image #{$image->id} set to: {$image->source}"); + } } // }}} end add