diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-08-15 20:19:20 +0400 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-09-06 12:44:03 +0400 |
commit | 9b77d746aba7ded13aa68f98ac4b5840f2d438f8 (patch) | |
tree | f16106e0d721859423406121628a12f03dc704e6 /tbl_addfield.php | |
parent | 4960f208e20ad7fd8b77cef9dcc82772c29def92 (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.php | 4 |
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, |