mirror of
https://github.com/filp/whoops.git
synced 2026-09-12 10:46:20 +00:00
Only output super globals that are not empty
This commit is contained in:
@@ -184,10 +184,12 @@
|
||||
</div>
|
||||
<div class="superglobals-container">
|
||||
<?php foreach($v->super as $label => $data): ?>
|
||||
<div class="superglobal" id="sg-<?php echo $e($slug($label)) ?>">
|
||||
<label><?php echo $e($label) ?></label>
|
||||
<pre class="prettyprint"><?php echo $e(print_r($data, true)); ?></pre>
|
||||
</div>
|
||||
<?php if(!empty($data)): ?>
|
||||
<div class="superglobal" id="sg-<?php echo $e($slug($label)) ?>">
|
||||
<label><?php echo $e($label) ?></label>
|
||||
<pre class="prettyprint"><?php echo $e(print_r($data, true)); ?></pre>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user