don't log for null->null

This commit is contained in:
Shish 2012-02-26 15:24:02 +00:00
parent 11c804b347
commit dadcb809ba

View File

@ -346,8 +346,11 @@ class ImageIO extends Extension {
$tags_to_set = $image->get_tag_array(); $tags_to_set = $image->get_tag_array();
$image->tag_array = array(); $image->tag_array = array();
send_event(new TagSetEvent($image, $tags_to_set)); send_event(new TagSetEvent($image, $tags_to_set));
if($image->source) {
log_info("core-image", "Source for Image #{$image->id} set to: {$image->source}"); log_info("core-image", "Source for Image #{$image->id} set to: {$image->source}");
} }
}
// }}} end add // }}} end add
// fetch image {{{ // fetch image {{{