1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Use get_rows()

This commit is contained in:
Jakub Vrana
2025-02-25 06:36:32 +01:00
parent 0d8028ddc5
commit c15576bbf8

View File

@@ -758,9 +758,8 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
function show_variables() {
global $connection;
$return = array();
$result = $connection->query("PRAGMA pragma_list");
while ($row = $result->fetch_row()) {
$return[$row[0]] = $connection->result("PRAGMA $row[0]");
foreach (get_rows("PRAGMA pragma_list") as $row) {
$return[$row["name"]] = $connection->result("PRAGMA $row[name]");
}
return $return;
}