Fix bug
This commit is contained in:
@@ -2119,7 +2119,7 @@ long LoginWrenchBoardQRAccount(CVars in, CVars &out) {
|
||||
REQ_STRING(in, "family_uid", 4, 140, "(.*)");
|
||||
|
||||
const PGresult* res = pgsql_query("SELECT f.username, f.pin FROM members_family f LEFT JOIN members m ON m.id=f.member_id "
|
||||
" WHERE f.uid = '%s' AND f.username = '%s' AND f.uid = '%s'' ", in["family_uid"].Long(), in["member_username"].c_str(), in["member_uid"].Long());
|
||||
" WHERE f.uid = '%s' AND f.username = '%s' AND f.uid = '%s'' ", in["family_uid"].c_str(), in["member_username"].c_str(), in["member_uid"].c_str());
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res,0);
|
||||
CVars inx;
|
||||
|
||||
Reference in New Issue
Block a user