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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user