diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index f206c023..d5fb44a7 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -756,10 +756,14 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) { } function show_variables() { - global $connection; $return = array(); foreach (get_rows("PRAGMA pragma_list") as $row) { - $return[$row["name"]] = $connection->result("PRAGMA $row[name]"); + $name = $row["name"]; + if ($name != "pragma_list" && $name != "compile_options") { + foreach (get_rows("PRAGMA $name") as $row) { + $return[$name] .= implode(", ", $row) . "\n"; + } + } } return $return; } diff --git a/adminer/variables.inc.php b/adminer/variables.inc.php index 46604f8b..16c14798 100644 --- a/adminer/variables.inc.php +++ b/adminer/variables.inc.php @@ -10,7 +10,7 @@ if (!$variables) { foreach ($variables as $key => $val) { echo "
" . h($key) . "
";
- echo "