Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(View): Fix admin/redis_key of wrong array echo
Browse files Browse the repository at this point in the history
Fix `admin/redis_key` of wrong array echo by using json_encode un_string
value
  • Loading branch information
Rhilip committed Mar 14, 2019
1 parent a4fcfff commit 6447136
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/views/admin/redis_key.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
<h1>Key: <code><?= $key ?></code></h1>
<table class="layui-table">
<tbody>
<tr>
<th>Key</th>
<td><input type="text" value="<?= $key ?>" readonly="readonly"
style="border: none; width: 100%; font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;"/>
</td>
</tr>
<tr>
<th>Type</th>
<td><code><?= $type ?></code></td>
Expand Down Expand Up @@ -77,7 +71,7 @@
<tr>
<td></td>
<td><code><?= $k ?></code></td>
<td><code><?= $v ?></code></td>
<td><code><?= is_string($v) ? $v : json_encode($v, JSON_PRETTY_PRINT) ?></code></td>
</tr>
<?php endforeach; ?>
</tbody>
Expand Down

0 comments on commit 6447136

Please sign in to comment.