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:
authorMichal Čihař <michal@cihar.com>2016-09-16 11:27:33 +0300
committerMichal Čihař <michal@cihar.com>2016-09-16 11:29:21 +0300
commit3546bed47e51ad8bec18b6680aeaf6c031808d5e (patch)
tree7c42cd49875a42088aa511e9eeb797308fa26cb0 /tbl_change.php
parent6e3d38a1d31c780722b0ed6f3dbf2a5c238c6dad (diff)
Avoid using mb_strlen for checking whether string is empty
Using strlen produces same results here, just way faster. Fixes #12397 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tbl_change.php')
-rw-r--r--tbl_change.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbl_change.php b/tbl_change.php
index 9d0caefbf7..478b12f1bb 100644
--- a/tbl_change.php
+++ b/tbl_change.php
@@ -53,7 +53,7 @@ require_once 'libraries/file_listing.lib.php';
* (at this point, $GLOBALS['goto'] will be set but could be empty)
*/
if (empty($GLOBALS['goto'])) {
- if (mb_strlen($table)) {
+ if (strlen($table) > 0) {
// avoid a problem (see bug #2202709)
$GLOBALS['goto'] = 'tbl_sql.php';
} else {