diff --git a/ChangeLog b/ChangeLog index 4bb07d5e9..572c0003d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $Source$ * libraries/export/sql.php: Minor optimalisations. * sql.php, tbl_replace.php, libraries/display_tbl.lib.php: Use same code for generating INSERT and UPDATE queries (also fixes bug #953250). + * tbl_replace_fields.php: When field is not set, it is not set :-) (bug + #953295). 2004-05-12 Marc Delisle * db_details_structure.php: bug #951143, undefined $header_url_qry diff --git a/tbl_replace_fields.php b/tbl_replace_fields.php index 68a58837d..ceaec85ee 100644 --- a/tbl_replace_fields.php +++ b/tbl_replace_fields.php @@ -120,11 +120,11 @@ if (!$check_stop) { $f = 'field_' . md5($key); $t_fval = (isset($$f) ? $$f : null); - + if (isset($t_fval['multi_edit']) && isset($t_fval['multi_edit'][$enc_primary_key])) { $fval = &$t_fval['multi_edit'][$enc_primary_key]; } else { - $fval = &$t_fval; + $fval = null; } switch (strtolower($val)) {