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>2014-10-30 20:37:49 +0300
committerHugues Peccatte <hugues.peccatte@gmail.com>2014-10-30 20:37:49 +0300
commit80ced5fe8f8cdcde7ff630ff073f2a339dcc0875 (patch)
tree99d2972ee2a3a9810d9dabf9c458667856b5078d /sql.php
parente17de11c7438aef5e9f0773fcebda186e5648846 (diff)
Fix PHPCS issues.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql.php b/sql.php
index 9d05f065ac..ddccdae201 100644
--- a/sql.php
+++ b/sql.php
@@ -113,7 +113,9 @@ if (isset($_REQUEST['set_col_prefs']) && $_REQUEST['set_col_prefs'] == true) {
// Default to browse if no query set and we have table
// (needed for browsing from DefaultTabTable)
-if (empty($sql_query) && /*overload*/mb_strlen($table) && /*overload*/mb_strlen($db)) {
+$tableLength = /*overload*/mb_strlen($table);
+$dbLength = /*overload*/mb_strlen($db);
+if (empty($sql_query) && $tableLength && $dbLength) {
$sql_query = PMA_getDefaultSqlQueryForBrowse($db, $table);
// set $goto to what will be displayed if query returns 0 rows