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() {
|
function show_variables() {
|
||||||
global $connection;
|
global $connection;
|
||||||
$return = array();
|
$return = array();
|
||||||
$result = $connection->query("PRAGMA pragma_list");
|
foreach (get_rows("PRAGMA pragma_list") as $row) {
|
||||||
while ($row = $result->fetch_row()) {
|
$return[$row["name"]] = $connection->result("PRAGMA $row[name]");
|
||||||
$return[$row[0]] = $connection->result("PRAGMA $row[0]");
|
|
||||||
}
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user