]> git.mxchange.org Git - mailer.git/commitdiff
Opps, not all elements for sprintf() has been set.
authorRoland Haeder <roland@mxchange.org>
Thu, 11 Sep 2014 20:12:17 +0000 (22:12 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 11 Sep 2014 20:12:17 +0000 (22:12 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/libs/wernis_functions.php

index 74bba7142c9fc8f29cdd54025e6c1a1531ec0388..263e40935d67291ca4f4e33c84b604d0e37058ce 100644 (file)
@@ -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__