diff options
author | Marc Delisle <marc@infomarc.info> | 2012-01-21 15:56:25 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2012-01-21 15:56:25 +0400 |
commit | ac95cf21a82c7617338e1abb7c07821a62bd3f98 (patch) | |
tree | 5263f5efefe0a90270716c512112d170c688211c /tbl_replace.php | |
parent | b3143e6cc0f35a83dd83cb4f03d7620bb36f71e3 (diff) | |
parent | 346c70d6fd7a6e402e41dfd552f70e3bdaf83323 (diff) |
Merge branch 'QA_3_4'
Diffstat (limited to 'tbl_replace.php')
-rw-r--r-- | tbl_replace.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tbl_replace.php b/tbl_replace.php index 60dc7cf5bf..8b8a58d050 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -223,6 +223,15 @@ foreach ($loop_array as $rownumber => $where_clause) { if ($is_insert && $using_key && isset($me_fields_type) && is_array($me_fields_type) && isset($where_clause)) { $prot_row = PMA_DBI_fetch_single_row('SELECT * FROM ' . PMA_backquote($table) . ' WHERE ' . $where_clause . ';'); } + + // When a select field is nullified, it's not present in $_REQUEST + // so initialize it; this way, the foreach($me_fields) will process it + foreach ($me_fields_name as $key => $val) { + if (! isset($me_fields[$key])) { + $me_fields[$key] = ''; + } + } + foreach ($me_fields as $key => $val) { // Note: $key is an md5 of the fieldname. The actual fieldname is available in $me_fields_name[$key] |