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 /export.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 'export.php')
-rw-r--r--export.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/export.php b/export.php
index 7462543a84..091d41ad96 100644
--- a/export.php
+++ b/export.php
@@ -259,9 +259,7 @@ if ($_REQUEST['output_format'] == 'astext') {
// Generate error url and check for needed variables
if ($export_type == 'server') {
$err_url = 'server_export.php' . URL::getCommon();
-} elseif ($export_type == 'database'
- && mb_strlen($db)
-) {
+} elseif ($export_type == 'database' && strlen($db) > 0) {
$err_url = 'db_export.php' . URL::getCommon(array('db' => $db));
// Check if we have something to export
if (isset($table_select)) {
@@ -269,9 +267,7 @@ if ($export_type == 'server') {
} else {
$tables = array();
}
-} elseif ($export_type == 'table' && mb_strlen($db)
- && mb_strlen($table)
-) {
+} elseif ($export_type == 'table' && strlen($db) > 0 && strlen($table) > 0) {
$err_url = 'tbl_export.php' . URL::getCommon(
array(
'db' => $db, 'table' => $table