prefrence updated
This commit is contained in:
@@ -33,10 +33,14 @@ long WrenchAccountSetPrefrence(CVars in, CVars &out){
|
||||
CVars rec;
|
||||
map_to_cvars(f, rec);
|
||||
pgsql_query("UPDATE members SET account_pref='%s' WHERE id = %lu AND uid::text = '%s'", in["user_pref"].c_str() ,in["member_id"].Long(), rec["uid"].c_str());
|
||||
|
||||
if ( load_db_record( out, "SELECT id,uid,account_pref FROM members WHERE id = %lu AND uid::text = '%s' ", ,in["member_id"].Long(), rec["uid"].c_str() )){
|
||||
ret = PHP_API_OK;
|
||||
out["status"] = "OK";
|
||||
out["status_msg"] = "members_pref_updated";
|
||||
}
|
||||
}
|
||||
|
||||
ret = PHP_API_OK;
|
||||
out["status"] = "OK";
|
||||
} catch (bad_parameter) {
|
||||
logfmt(logINFO, "ERROR CALL long WrenchAccountSetPrefrence(CVars in, CVars &out)");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user