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

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Desportes <williamdes@wdes.fr>2019-05-07 19:45:51 +0300
committerWilliam Desportes <williamdes@wdes.fr>2019-05-07 19:45:51 +0300
commit3500da154f43b45b4220dc9d407ce5cd4532f887 (patch)
tree8969d31f1e1ab0055f62c3aaa2af21f05bdc8a86 /db_designer.php
parent3e3a5ce7e24954f2f979e4b46b84f6d15de20a98 (diff)
Fix undefined index dialog
Did occur when POST OR GET was sent to have a dialog Signed-off-by: William Desportes <williamdes@wdes.fr>
Diffstat (limited to 'db_designer.php')
-rw-r--r--db_designer.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/db_designer.php b/db_designer.php
index df9a866a23..0531c8e7dd 100644
--- a/db_designer.php
+++ b/db_designer.php
@@ -16,15 +16,15 @@ $response = Response::getInstance();
$databaseDesigner = new Designer();
$designerCommon = new Common();
-if (isset($_REQUEST['dialog'])) {
+if (isset($_POST['dialog'])) {
- if ($_GET['dialog'] == 'edit') {
+ if ($_POST['dialog'] == 'edit') {
$html = $databaseDesigner->getHtmlForEditOrDeletePages($GLOBALS['db'], 'editPage');
- } elseif ($_GET['dialog'] == 'delete') {
+ } elseif ($_POST['dialog'] == 'delete') {
$html = $databaseDesigner->getHtmlForEditOrDeletePages($GLOBALS['db'], 'deletePage');
- } elseif ($_GET['dialog'] == 'save_as') {
+ } elseif ($_POST['dialog'] == 'save_as') {
$html = $databaseDesigner->getHtmlForPageSaveAs($GLOBALS['db']);
- } elseif ($_GET['dialog'] == 'export') {
+ } elseif ($_POST['dialog'] == 'export') {
$html = $databaseDesigner->getHtmlForSchemaExport(
$GLOBALS['db'], $_GET['selected_page']
);