Skip to content

Commit

Permalink
fix database manager error with nested objects/arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
dleffler committed Apr 7, 2017
1 parent 373fd7f commit 5364c2a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions external/adminer/plugins/AdminerSerializedPreview.php
Expand Up @@ -205,8 +205,11 @@ public function convertSerialized($json, $level = 1, $id = 0)
} elseif (is_null($val)) {
// Handle null value.
$value .= "<code class='jush'>null</code>";
} else {
$value .= "<code class='jush'>" . h($val) . "</code>";
} elseif (is_string($val)) {
$value .= "<code class='jush'>" . h($val) . "</code>";
} elseif (is_object($val) || is_array($val)) {
//fixme here is a nested object/array
$value .= "<code class='jush'>" . h(serialize($val)) . "</code>";
}
}

Expand Down

0 comments on commit 5364c2a

Please sign in to comment.