From 8e2f6275a4853eb8eec6bca06c3777ca7097db07 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 6 Dec 2017 20:13:50 +0100 Subject: [PATCH] Prevent from empty 'class' attribute in generated html --- program/include/rcmail_html_page.php | 2 +- program/steps/mail/show.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/program/include/rcmail_html_page.php b/program/include/rcmail_html_page.php index 51cbff4c2..df50552e7 100644 --- a/program/include/rcmail_html_page.php +++ b/program/include/rcmail_html_page.php @@ -70,7 +70,7 @@ class rcmail_html_page extends rcmail_output_html */ public function register_inline_warning($text, $button_label = null, $button_url = null) { - $text = html::span('', $text); + $text = html::span(null, $text); if ($button_label) { $onclick = "location.href = '$button_url'"; diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index cd2fbc963..e652dfc5f 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -244,7 +244,7 @@ function rcmail_remote_objects_msg() $attrib['class'] = 'notice'; $attrib['style'] = 'display: none'; - $msg = html::span('', rcube::Q($RCMAIL->gettext('blockedresources'))) . ' ' + $msg = html::span(null, rcube::Q($RCMAIL->gettext('blockedresources'))) . ' ' . html::a(array( 'href' => "#loadremote", 'onclick' => rcmail_output::JS_OBJECT_NAME.".command('load-remote')" @@ -283,7 +283,7 @@ function rcmail_message_buttons() $attrib['id'] = 'message-buttons'; $attrib['class'] = 'notice'; - $msg = html::span('', rcube::Q($RCMAIL->gettext('isdraft'))) . ' '; + $msg = html::span(null, rcube::Q($RCMAIL->gettext('isdraft'))) . ' '; $msg .= html::a(array( 'href' => "#edit", 'onclick' => rcmail_output::JS_OBJECT_NAME.".command('edit')"