From 5d02608b6061d4996305f523458611a2af0e7995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20M=C3=BCller?= Date: Mon, 27 Aug 2001 22:04:08 +0000 Subject: [PATCH] * tbl_replace.php3: fixed the fact that the function were ignored if the data remained unchanged. --- ChangeLog | 4 ++++ tbl_replace.php3 | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f2dc050a1..ad9951637 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2001-08-27 Olivier Müller + * tbl_replace.php3: fixed the fact that the function were + ignored if the data remained unchanged. + 2001-08-27 Loïc Chapeaux * lib.inc.php3: fixed some coding style inconcistencies. * lib.inc.php3, lines -; config.inc.php3, lines 106-110; diff --git a/tbl_replace.php3 b/tbl_replace.php3 index 695502454..25dfb15b6 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -115,7 +115,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) { } // end switch // No change for this column -> next column - if (isset($fields_prev) && isset($fields_prev[urlencode($key)]) + if (isset($fields_prev) && isset($fields_prev[urlencode($key)]) && !empty($funcs[$key]) && ("'" . sql_addslashes(urldecode($fields_prev[urlencode($key)])) . "'" == $val)) { continue; }