diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc index 36ceec85e..78b5354b5 100644 --- a/program/steps/addressbook/func.inc +++ b/program/steps/addressbook/func.inc @@ -860,7 +860,7 @@ function rcmail_contact_photo($attrib) $content = html::div($attrib, html::img(array( 'src' => $photo_img, 'alt' => $RCMAIL->gettext('contactphoto'), - 'onerror' => 'this.src = rcmail.env.photo_placeholder', + 'onerror' => 'this.src = rcmail.env.photo_placeholder; this.onerror = null', ))); if ($CONTACT_COLTYPES['photo'] && ($RCMAIL->action == 'edit' || $RCMAIL->action == 'add')) { diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index 62fe8ffef..9da762491 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -336,7 +336,7 @@ function rcmail_message_contactphoto($attrib) '_email' => $MESSAGE->sender['mailto'], )); - $attrib['onerror'] = "this.src = '$placeholder'"; + $attrib['onerror'] = "this.src = '$placeholder'; this.onerror = null"; } else { $photo_img = $placeholder; diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc index 250d6750f..f86491d25 100644 --- a/program/steps/settings/func.inc +++ b/program/steps/settings/func.inc @@ -353,7 +353,7 @@ function rcmail_user_prefs($current = null) 'alt' => $skin, 'width' => 64, 'height' => 64, - 'onerror' => "this.src = rcmail.assets_path('program/resources/blank.gif')", + 'onerror' => "this.src = rcmail.assets_path('program/resources/blank.gif'); this.onerror = null", )); $skinnames[] = mb_strtolower($skinname);