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,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