Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2018-04-26 03:18:56 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-04-26 03:18:56 +0300
commit2ff3aaa1f7e36c2e4c84959464b6aadba3653979 (patch)
treed70ae895f84913fc2fb8b19e2fee0200c5489549 /src/controllers/DataexportController.php
parent43abf0785a438bd75be3395dc955c14f2e1fe2e0 (diff)
fixes more issues
Diffstat (limited to 'src/controllers/DataexportController.php')
-rw-r--r--src/controllers/DataexportController.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/controllers/DataexportController.php b/src/controllers/DataexportController.php
index 22c11dfd..303d23c7 100644
--- a/src/controllers/DataexportController.php
+++ b/src/controllers/DataexportController.php
@@ -34,6 +34,7 @@ class DataexportController extends BaseController
// if (!isset($_REQUEST['table']) && !isset($_REQUEST['query']))
// What must we do in this case? Maybe redirect to the homepage?
+ $format = 'N/A';
// If format is set, then perform the export
if (isset($_REQUEST['what'])) {
$this->prtrace("REQUEST['what']", $_REQUEST['what']);
@@ -97,7 +98,7 @@ class DataexportController extends BaseController
$ext = 'txt';
}
- header('Content-Disposition: attachment; filename=dump.'.$ext);
+ header('Content-Disposition: attachment; filename=dump.' . $ext);
}
} else {
header('Content-Type: text/plain');
@@ -269,7 +270,7 @@ class DataexportController extends BaseController
$values = (is_null($v) ? 'NULL' : "'{$v}'");
$first = false;
} else {
- $values .= ', '.((is_null($v) ? 'NULL' : "'{$v}'"));
+ $values .= ', ' . ((is_null($v) ? 'NULL' : "'{$v}'"));
}
}
echo ") VALUES ({$values});\n";
@@ -354,7 +355,7 @@ class DataexportController extends BaseController
$this->printMsg($msg);
}
- echo '<form action="'.\SUBFOLDER."/src/views/dataexport\" method=\"post\">\n";
+ echo '<form action="' . \SUBFOLDER . "/src/views/dataexport\" method=\"post\">\n";
echo "<table>\n";
echo "<tr><th class=\"data\">{$this->lang['strformat']}:</th><td><select name=\"d_format\">\n";
// COPY and SQL require a table