diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index 7b4061bc..e1187937 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -661,7 +661,6 @@ ORDER BY conkey, conname") as $row function truncate_tables($tables) { return queries("TRUNCATE " . implode(", ", array_map('Adminer\table', $tables))); - return true; } function drop_views($views) { diff --git a/editor/example.php b/editor/example.php index 37dfd450..987ac2e0 100644 --- a/editor/example.php +++ b/editor/example.php @@ -1,6 +1,5 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/pretty-json-column.php b/plugins/pretty-json-column.php index f814276f..cf99bff8 100644 --- a/plugins/pretty-json-column.php +++ b/plugins/pretty-json-column.php @@ -21,9 +21,7 @@ class AdminerPrettyJsonColumn { $json = $this->testJson($value); if ($json !== $value) { $jsonText = json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); - return <<$jsonText -HTML; + return "" . h($jsonText) . ""; } return ''; }