Use connection() instead of $connection

This commit is contained in:
Jakub Vrana
2025-03-29 21:16:28 +01:00
parent 168ea5ae6d
commit 712d96b22c
36 changed files with 130 additions and 196 deletions

View File

@@ -28,8 +28,7 @@ class AdminerDumpPhp {
function dumpData($table, $style, $query) {
if ($_POST['format'] == 'php') {
$connection = Adminer\connection();
$result = $connection->query($query, 1);
$result = Adminer\connection()->query($query, 1);
if ($result) {
while ($row = $result->fetch_assoc()) {
$this->output[$table][] = $row;