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:
Diffstat (limited to 'src/controllers/ViewsController.php')
-rw-r--r--src/controllers/ViewsController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/ViewsController.php b/src/controllers/ViewsController.php
index c8212af6..84feea4d 100644
--- a/src/controllers/ViewsController.php
+++ b/src/controllers/ViewsController.php
@@ -64,7 +64,7 @@ class ViewsController extends BaseController
break;
case 'set_params_create':
- if (isset($_POST['cancel'])) {
+ if (null !== $this->getPostParam('cancel')) {
$this->doDefault();
} else {
$this->doSetParamsCreate();
@@ -84,7 +84,7 @@ class ViewsController extends BaseController
break;
case 'drop':
- if (isset($_POST['drop'])) {
+ if (null !== $this->getPostParam('drop')) {
$this->doDrop(false);
} else {
$this->doDefault();
@@ -418,7 +418,7 @@ class ViewsController extends BaseController
echo '<p><input type="hidden" name="action" value="save_create" />' . \PHP_EOL;
echo $this->view->form;
echo "<input type=\"submit\" value=\"{$this->lang['strcreate']}\" />" . \PHP_EOL;
- echo sprintf('<input type="submit" name="cancel" value="%s" /></p>%s',$this->lang['strcancel'], \PHP_EOL);
+ echo \sprintf('<input type="submit" name="cancel" value="%s" /></p>%s', $this->lang['strcancel'], \PHP_EOL);
echo '</form>' . \PHP_EOL;
}