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-08-15 20:19:20 +0400
committerHugues Peccatte <hugues.peccatte@gmail.com>2014-09-06 12:44:03 +0400
commit9b77d746aba7ded13aa68f98ac4b5840f2d438f8 (patch)
treef16106e0d721859423406121628a12f03dc704e6 /tbl_create.php
parent4960f208e20ad7fd8b77cef9dcc82772c29def92 (diff)
Mass modifications to use PMA_String.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'tbl_create.php')
-rw-r--r--tbl_create.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/tbl_create.php b/tbl_create.php
index a6209d6c4b..b685ea5692 100644
--- a/tbl_create.php
+++ b/tbl_create.php
@@ -15,8 +15,11 @@ require_once 'libraries/create_addfield.lib.php';
// Check parameters
PMA_Util::checkParameters(array('db'));
+/** @var PMA_String $pmaString */
+$pmaString = $GLOBALS['PMA_String'];
+
/* Check if database name is empty */
-if (strlen($db) == 0) {
+if ($pmaString->strlen($db) == 0) {
PMA_Util::mysqlDie(
__('The database name is empty!'), '', false, 'index.php'
);
@@ -73,7 +76,7 @@ if (isset($_REQUEST['do_save_data'])) {
) {
foreach ($_REQUEST['field_mimetype'] as $fieldindex => $mimetype) {
if (isset($_REQUEST['field_name'][$fieldindex])
- && strlen($_REQUEST['field_name'][$fieldindex])
+ && $pmaString->strlen($_REQUEST['field_name'][$fieldindex])
) {
PMA_setMIME(
$db, $table,