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
path: root/setup
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2021-09-01 19:29:05 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2021-09-01 19:29:05 +0300
commit5725516656e8d537adab523cfe5db3baf2057921 (patch)
tree69b7d215e58477af2a7dc21a7c3fc658ec3b68b8 /setup
parente5e7bd2f95911b92ebdf1a7e357a4477f360e891 (diff)
Inline `Core::ifSetOr` method
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'setup')
-rw-r--r--setup/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/config.php b/setup/config.php
index 131b30ebac..5b8024e87f 100644
--- a/setup/config.php
+++ b/setup/config.php
@@ -33,7 +33,7 @@ if (isset($_POST['eol'])) {
$_SESSION['eol'] = $_POST['eol'] === 'unix' ? 'unix' : 'win';
}
-if (Core::ifSetOr($_POST['submit_clear'], '')) {
+if (Core::isValid($_POST['submit_clear'], 'similar', '') ? $_POST['submit_clear'] : '') {
// Clear current config and return to main page
$GLOBALS['ConfigFile']->resetConfigData();
// drop post data
@@ -41,7 +41,7 @@ if (Core::ifSetOr($_POST['submit_clear'], '')) {
exit;
}
-if (Core::ifSetOr($_POST['submit_download'], '')) {
+if (Core::isValid($_POST['submit_download'], 'similar', '') ? $_POST['submit_download'] : '') {
// Output generated config file
Core::downloadHeader('config.inc.php', 'text/plain');
$response->disable();