Commit e330d3ed authored by Yuliya Bozhko's avatar Yuliya Bozhko Committed by Gerrit Code Review

Merge "Can't use function return value in write context in pieform renderer (Bug #1403178)"

parents 47ef0f4a 3ef44ad8
......@@ -94,9 +94,13 @@ class FormRendererMultiColumnTable {/*{{{*/
$result .= ' class="' . Pieform::hsc($data['settings']['class']) . '"';
}
$result .= ">\n\t\t";
if (!empty(trim($data['settings']['title']))) {
$title = '';
if (!empty($data['settings']['title'])) {
$title = trim($data['settings']['title']);
}
if (!empty($title)) {
$result .= '<th>';
$result .= Pieform::hsc($data['settings']['title']);
$result .= Pieform::hsc($title);
if ($this->form->get_property('requiredmarker') && !empty($rawelement['rules']['required'])) {
$result .= ' <span class="requiredmarker">*</span>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment