Skip to content

Commit

Permalink
Fix handler list incorrectly marking all handlers as active, #646
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-sokolov committed Nov 3, 2019
1 parent cde50e6 commit cef858f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Whoops/Resources/views/env_details.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
<?php /* List registered handlers, in order of first to last registered */ ?>
<div class="data-table-container" id="handlers">
<label>Registered Handlers</label>
<?php foreach ($handlers as $i => $handler): ?>
<div class="handler <?php echo ($handler === $handler) ? 'active' : ''?>">
<?php echo $i ?>. <?php echo $tpl->escape(get_class($handler)) ?>
<?php foreach ($handlers as $i => $h): ?>
<div class="handler <?php echo ($h === $handler) ? 'active' : ''?>">
<?php echo $i ?>. <?php echo $tpl->escape(get_class($h)) ?>
</div>
<?php endforeach ?>
</div>
Expand Down

0 comments on commit cef858f

Please sign in to comment.