Index: trunk/extensions/TemplateInfo/TemplateInfo.classes.php |
— | — | @@ -47,7 +47,11 @@ |
48 | 48 | |
49 | 49 | static function tableRowHTML($css_class, $data_type, $value = null) { |
50 | 50 | $data_type = htmlspecialchars($data_type); |
51 | | - $content = is_null($value) ? $data_type : "$data_type: " . HTML::element('span', array('class' => 'rowValue'), $value); |
| 51 | + if (is_null($value)) { |
| 52 | + $content = $data_type; |
| 53 | + } else { |
| 54 | + $content = "$data_type: " . HTML::element('span', array('class' => 'rowValue'), $value); |
| 55 | + } |
52 | 56 | $cell = HTML::rawElement('td', array('colspan' => 2), $content); |
53 | 57 | $text = HTML::rawElement('tr', array('class' => $css_class), $cell); |
54 | 58 | $text .= "\n"; |