Skip to content

Commit

Permalink
修复 admin_javascript_json 函数会自动空滤数组空值问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Oct 27, 2020
1 parent 81b1c20 commit cc2b7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/JavaScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static function delete(string $id)
public static function format($value)
{
if (is_array($value) || is_object($value)) {
$value = json_encode(Helper::array($value));
$value = json_encode(Helper::array($value, false));
}

foreach (static::all() as $id => $script) {
Expand Down

0 comments on commit cc2b7e8

Please sign in to comment.