From 99966a712b3b3d8b521524762e153353d1d20bd4 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Thu, 11 Sep 2014 22:12:17 +0200 Subject: [PATCH] Opps, not all elements for sprintf() has been set. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/libs/wernis_functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/libs/wernis_functions.php b/inc/libs/wernis_functions.php index 74bba7142c..263e40935d 100644 --- a/inc/libs/wernis_functions.php +++ b/inc/libs/wernis_functions.php @@ -666,15 +666,16 @@ function updateWernisRegistrationDataByKey ($updatedColumn, $key, $oldValue, $ne sqlQueryEscaped("UPDATE `{?_MYSQL_PREFIX?}_wernis_regs` SET - `%s`='%s' + `%s` = '%s' WHERE - `%s`='%s' AND + `%s` = '%s' AND `%s` != '%s' LIMIT 1", array( $updatedColumn, $newValue, $key, + $oldValue, $updatedColumn, $oldValue ), __FUNCTION__, __LINE__ -- 2.39.5