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 74bba71..263e409 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__