// 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
// Return the result from the lower functions
$return = sendWernisApiRequest('book.php', $requestData);
+ // Did it went smoothly?
if (isHttpResponseStatusOkay($return)) {
// All fine!
$result = TRUE;
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__