* $Author:: $ *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
* For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
);
if ((getRefPayout() == '0') && (postRequestElement('ref_payout') > 0)) {
// Update account's ref_payout for "must-confirm"
- addSql(sprintf("UPDATE
+ addSql(sprintf('UPDATE
`{?_MYSQL_PREFIX?}_user_data`
SET
`ref_payout`=(%s - `mails_confirmed`)
WHERE
- `mails_confirmed` < %s", $REF, $REF));
+ `mails_confirmed` < %s', $REF, $REF));
} elseif ((getRefPayout() > 0) && (postRequestElement('ref_payout') == '0')) {
// Update account's ref_payout for "not-must-confirm"
addSql("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `ref_payout`=0 WHERE `ref_payout` > 0");
} // END - switch
// Is there an array?
- if ((getRequestElement('sub') != 'points') && (isSqlsValid())) {
+ if ((getRequestElement('sub') != 'points') && (ifSqlsRegistered())) {
// Default is failed-message
$message = '<span class="bad">{--SETTINGS_NOT_SAVED--}</span>';