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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-06-04 12:03:06 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-06-04 12:03:06 +0300
commitc37a3d9bb0002817a8da35fd4592db743d053d80 (patch)
tree0173d8c68095bf8ffed353b43a3135b4c2608eb7 /libraries
parentfd7907a04117955c5e7f0b552c906a95331754d6 (diff)
Inline control structures are discouraged
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'libraries')
-rw-r--r--libraries/DatabaseInterface.class.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/DatabaseInterface.class.php b/libraries/DatabaseInterface.class.php
index 831e857cc7..0182011226 100644
--- a/libraries/DatabaseInterface.class.php
+++ b/libraries/DatabaseInterface.class.php
@@ -1660,7 +1660,9 @@ class PMA_DatabaseInterface
public function setForeignKeyCheck($value)
{
$current_fk_check_value = $GLOBALS['dbi']->getVariable('FOREIGN_KEY_CHECKS') == 'ON';
- if ($current_fk_check_value == $value) return;
+ if ($current_fk_check_value == $value) {
+ return;
+ }
$this->query('SET FOREIGN_KEY_CHECKS = ' . ($value ? 1 : 0) . ';');
}