Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--share/html/Ticket/Attachment/dhandler1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/html/Ticket/Attachment/dhandler b/share/html/Ticket/Attachment/dhandler
index 442c63193e..045896aaed 100644
--- a/share/html/Ticket/Attachment/dhandler
+++ b/share/html/Ticket/Attachment/dhandler
@@ -83,6 +83,7 @@ elsif (lc $content_type eq 'text/html') {
Content => \$content,
Attachment => $AttachmentObj,
);
+ $count //= 0; # RewriteInlineImages can return undef when nothing needs to be rewritten
RT->Logger->debug("Rewrote $count CID images when displaying original HTML attachment #$attach");
}