summaryrefslogtreecommitdiff
path: root/program/steps/mail
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-08-01 12:49:37 +0200
committerAleksander Machniak <alec@alec.pl>2014-08-01 12:49:37 +0200
commitfcb7d4fc034335d960917abd37254bd3997cf2f3 (patch)
treedbd65826f37ad7dc17b3a4ff0dcec66cb4f1feaa /program/steps/mail
parent9453257baf8934cd7667c30d92450689c9a0ded8 (diff)
Fix various iCloud vCard issues, added fallback for external photos (#1489993)
Diffstat (limited to 'program/steps/mail')
-rw-r--r--program/steps/mail/show.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 4b2d78d31..d4121fdd8 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -349,8 +349,10 @@ function rcmail_message_contactphoto($attrib)
'_task' => 'addressbook',
'_action' => 'photo',
'_email' => $MESSAGE->sender['mailto'],
- '_alt' => $placeholder
+ '_alt' => $placeholder,
));
+
+ $attrib['onerror'] = "this.src = '" . ($placeholder ? $placeholder : 'program/resources/blank.gif') . "'";
}
else {
$photo_img = $placeholder ? $placeholder : 'program/resources/blank.gif';