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:
authorHugues Peccatte <hugues.peccatte@gmail.com>2015-07-25 10:36:48 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2015-07-25 10:36:48 +0300
commit08919d9252172187fe40a17c028bd0a83ecbe83f (patch)
treef51d0a811b95b035a54bb4beab8ab5dbf361847f /db_designer.php
parenta5d43db5503d03d8fe45775cd6ca760ff32b838e (diff)
Make PHPCS happy.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'db_designer.php')
-rw-r--r--db_designer.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/db_designer.php b/db_designer.php
index 221087ee4e..00731675c4 100644
--- a/db_designer.php
+++ b/db_designer.php
@@ -94,8 +94,8 @@ if (isset($_REQUEST['operation'])) {
&& $GLOBALS['cfgRelation']['designersettingswork']
) {
$orig_data_query = 'SELECT ' . PMA_Util::backquote('settings_data')
- . ' FROM `' . $cfgDesigner['db'] . '`.`' . $cfgDesigner['table'] . '` WHERE '
- . PMA_Util::backquote('username') . ' = "'
+ . ' FROM `' . $cfgDesigner['db'] . '`.`' . $cfgDesigner['table']
+ . '` WHERE ' . PMA_Util::backquote('username') . ' = "'
. $cfgDesigner['user'] . '"';
$orig_data = $GLOBALS['dbi']->fetchSingleRow($orig_data_query);
@@ -113,8 +113,8 @@ if (isset($_REQUEST['operation'])) {
$save_query = 'UPDATE `' . $cfgDesigner['db'] . '`.`'
. $cfgDesigner['table'] . '` SET '
. PMA_Util::backquote('settings_data') . ' = \''
- . $orig_data . '\' WHERE ' . PMA_Util::backquote('username') . ' = "'
- . $cfgDesigner['user'] . '";';
+ . $orig_data . '\' WHERE ' . PMA_Util::backquote('username')
+ . ' = "' . $cfgDesigner['user'] . '";';
$success = $GLOBALS['dbi']->query($save_query);
} else {
@@ -122,7 +122,8 @@ if (isset($_REQUEST['operation'])) {
$query = 'INSERT INTO ' . PMA_Util::backquote($cfgDesigner['db'])
. '.' . PMA_Util::backquote($cfgDesigner['table'])
- . ' VALUES("' . PMA_Util::sqlAddSlashes($cfgDesigner['user']) . '", \''
+ . ' VALUES("' . PMA_Util::sqlAddSlashes($cfgDesigner['user'])
+ . '", \''
. PMA_Util::sqlAddSlashes(json_encode($save_data)) . '\');';
$success = $GLOBALS['dbi']->query($query);