mirror of
https://github.com/vrana/adminer.git
synced 2025-12-20 15:30:45 +01:00
Use connection() instead of $connection
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user