From: Roland Haeder Date: Thu, 11 Sep 2014 20:12:17 +0000 (+0200) Subject: Opps, not all elements for sprintf() has been set. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99966a712b3b3d8b521524762e153353d1d20bd4;p=mailer.git Opps, not all elements for sprintf() has been set. Signed-off-by: Roland Häder --- 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__