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/OperatorsController.php')
-rw-r--r--src/controllers/OperatorsController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/controllers/OperatorsController.php b/src/controllers/OperatorsController.php
index d1bf39ec..baa78c46 100644
--- a/src/controllers/OperatorsController.php
+++ b/src/controllers/OperatorsController.php
@@ -29,7 +29,7 @@ class OperatorsController extends BaseController
switch ($this->action) {
/*case 'save_create':
- if (isset($_POST['cancel'])) {
+ if($this->getPostParam('cancel')!==null){
$this->doDefault();
} else {
$this->doSaveCreate();
@@ -41,7 +41,7 @@ class OperatorsController extends BaseController
break;*/
case 'drop':
- if (isset($_POST['cancel'])) {
+ if (null !== $this->getPostParam('cancel')) {
$this->doDefault();
} else {
$this->doDrop(false);
@@ -263,7 +263,7 @@ class OperatorsController extends BaseController
echo '<input type="hidden" name="operator_oid" value="', \htmlspecialchars($_REQUEST['operator_oid']), '" />' . \PHP_EOL;
echo $this->view->form;
echo "<input type=\"submit\" name=\"drop\" value=\"{$this->lang['strdrop']}\" />" . \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;
} else {
$status = $data->dropOperator($_POST['operator_oid'], isset($_POST['cascade']));