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_addfield.php
parent4960f208e20ad7fd8b77cef9dcc82772c29def92 (diff)
Mass modifications to use PMA_String.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'tbl_addfield.php')
-rw-r--r--tbl_addfield.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tbl_addfield.php b/tbl_addfield.php
index 305765ce18..3946efeacc 100644
--- a/tbl_addfield.php
+++ b/tbl_addfield.php
@@ -64,9 +64,11 @@ if (isset($_REQUEST['do_save_data'])) {
&& is_array($_REQUEST['field_mimetype'])
&& $cfg['BrowseMIME']
) {
+ /** @var PMA_String $pmaString */
+ $pmaString = $GLOBALS['PMA_String'];
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,