Skip to content

Commit

Permalink
Merge pull request #308 from ridho1991/develop
Browse files Browse the repository at this point in the history
fix some errors on error_exception.php
  • Loading branch information
lonnieezell authored Nov 22, 2016
2 parents ac9a074 + 518a912 commit a944993
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions application/Views/errors/html/error_exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@

<?php $headers = $request->getHeaders(); ?>
<?php if (! empty($headers)) : ?>
<?php natsort($headers) ?>

<h3>Headers</h3>

Expand All @@ -280,10 +279,14 @@
</thead>
<tbody>
<?php foreach ($headers as $name => $value) : ?>
<tr>
<td><?= esc($name, 'html') ?></td>
<td><?= esc($request->getHeaderLine($name), 'html') ?></td>
</tr>
<?php if (empty($value)) continue; ?>
<?php if (! is_array($value)) { $value = [$value]; } ?>
<?php foreach ($value as $h) : ?>
<tr>
<td><?= esc($h->getName(), 'html') ?></td>
<td><?= esc($h->getValueLine(), 'html') ?></td>
</tr>
<?php endforeach; ?>
<?php endforeach; ?>
</tbody>
</table>
Expand Down Expand Up @@ -321,7 +324,7 @@
<?php foreach ($headers as $name => $value) : ?>
<tr>
<td><?= esc($name, 'html') ?></td>
<td><?= esc($request->getHeaderLine($name), 'html') ?></td>
<td><?= esc($response->getHeaderLine($name), 'html') ?></td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down

0 comments on commit a944993

Please sign in to comment.