Skip to content
Snippets Groups Projects
Commit 0dcec46b authored by Demian Katz's avatar Demian Katz
Browse files

Template optimization.

parent c22586d8
No related merge requests found
...@@ -7,8 +7,7 @@ ...@@ -7,8 +7,7 @@
<tr> <tr>
<th><?=$this->escapeHtml($field)?></th> <th><?=$this->escapeHtml($field)?></th>
<td> <td>
<? if (!is_array($values)) { $values = [$values]; } ?> <? foreach ((array)$values as $value): ?>
<? foreach ($values as $value): ?>
<?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br /> <?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br />
<? endforeach; ?> <? endforeach; ?>
</td> </td>
......
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