Commit 3ef44ad8 authored by Robert Lyon's avatar Robert Lyon

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

Fixing up so older versions of php (pre 5.5) can deal with it

Change-Id: I88fa8f3641d20bbf18cef7b26d43c8d14a4d6f1d
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 0c875692
......@@ -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