]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/wernis_functions.php
Opps, not all elements for sprintf() has been set.
[mailer.git] / inc / libs / wernis_functions.php
index 922cb56ff8d05d0c4fb83780f20fa26db794d2cd..263e40935d67291ca4f4e33c84b604d0e37058ce 100644 (file)
@@ -219,8 +219,8 @@ function doAdminTestWernisApi () {
 
        // Prepare the request data
        $requestData = array(
-               't_uid'       => getWernisRefid(),
-               't_md5'       => getWernisPassMd5()
+               't_uid' => getWernisRefid(),
+               't_md5' => getWernisPassMd5()
        );
 
        // Return the result from the lower functions
@@ -268,6 +268,7 @@ function executeWernisApiWithdraw ($wdsId, $userMd5, $amount) {
        // Return the result from the lower functions
        $return = sendWernisApiRequest('book.php', $requestData);
 
+       // Did it went smoothly?
        if (isHttpResponseStatusOkay($return)) {
                // All fine!
                $result = TRUE;
@@ -665,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__