Read error
This commit is contained in:
@@ -534,7 +534,7 @@ long account_calls(CVars in, CVars &out) {
|
||||
#define PHP_API_TRANSFER_COMPLETE 200
|
||||
|
||||
long WrenchResendMyReferLink(CVars in, CVars &out) {
|
||||
logfmt(logINFO, "WrenchMyPageIntro()");
|
||||
logfmt(logINFO, "WrenchResendMyReferLink()");
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
const PGresult *res;
|
||||
char buf[1500];
|
||||
@@ -548,7 +548,7 @@ long WrenchResendMyReferLink(CVars in, CVars &out) {
|
||||
|
||||
if ( load_db_record(x, " SELECT id, uid,email,firstname,lastname FROM members "
|
||||
" WHERE LOWER(SUBSTRING(uid::text, 0,9)) = LOWER('%s') "
|
||||
" AND id = %s", in["uid_part"].c_str(), in["member_id"].Long()) > 0){
|
||||
" AND id = %lu", in["uid_part"].c_str(), in["member_id"].Long()) > 0){
|
||||
account_email(WRENCHBOARD_MYREFLINK, x, x);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user