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/ViewpropertiesController.php')
-rw-r--r--src/controllers/ViewpropertiesController.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/controllers/ViewpropertiesController.php b/src/controllers/ViewpropertiesController.php
index 237b0664..523d5c47 100644
--- a/src/controllers/ViewpropertiesController.php
+++ b/src/controllers/ViewpropertiesController.php
@@ -35,7 +35,7 @@ class ViewpropertiesController extends BaseController
switch ($this->action) {
case 'save_edit':
- if (isset($_POST['cancel'])) {
+ if (null !== $this->getPostParam('cancel')) {
$this->doDefinition();
} else {
$this->doSaveEdit();
@@ -57,7 +57,7 @@ class ViewpropertiesController extends BaseController
break;
case 'properties':
- if (isset($_POST['cancel'])) {
+ if (null !== $this->getPostParam('cancel')) {
$this->doDefault();
} else {
$this->doProperties();
@@ -65,7 +65,7 @@ class ViewpropertiesController extends BaseController
break;
case 'alter':
- if (isset($_POST['alter'])) {
+ if (null !== $this->getPostParam('alter')) {
$this->doAlter(false);
} else {
$this->doDefault();
@@ -77,7 +77,7 @@ class ViewpropertiesController extends BaseController
break;
/*case 'drop':
- if (isset($_POST['drop'])) {
+ if($this->getPostParam('drop')!==null){
$this->doDrop(false);
} else {
$this->doDefault();
@@ -233,7 +233,7 @@ EOT;
echo '<input type="hidden" name="column" value="', \htmlspecialchars($_REQUEST['column']), '" />' . \PHP_EOL;
echo '<input type="hidden" name="olddefault" value="', \htmlspecialchars($_REQUEST['olddefault']), '" />' . \PHP_EOL;
echo "<input type=\"submit\" value=\"{$this->lang['stralter']}\" />" . \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;
break;
@@ -345,7 +345,7 @@ EOT;
echo '<input type="hidden" name="view" value="', \htmlspecialchars($_REQUEST[$this->subject]), '" />' . \PHP_EOL;
echo $this->view->form;
echo "<p><input type=\"submit\" name=\"alter\" value=\"{$this->lang['stralter']}\" />" . \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 {
echo "<p>{$this->lang['strnodata']}</p>" . \PHP_EOL;