Aleksander Machniak
2014-08-01 fcb7d4fc034335d960917abd37254bd3997cf2f3
program/steps/mail/show.inc
@@ -80,7 +80,7 @@
    // set configuration
    $RCMAIL->set_env_config(array('delete_junk', 'flag_for_deletion', 'read_when_deleted',
        'skip_deleted', 'display_next', 'compose_extwin', 'forward_attachment'));
        'skip_deleted', 'display_next', 'forward_attachment'));
    // set special folders
    foreach (array('drafts', 'trash', 'junk') as $mbox) {
@@ -349,12 +349,14 @@
            '_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';
    }
    return html::img(array('src' => $photo_img) + $attrib);
    return html::img(array('src' => $photo_img, 'alt' => $RCMAIL->gettext('contactphoto')) + $attrib);
}