fix query b
This commit is contained in:
@@ -123,7 +123,7 @@ long WrenchFamilyInvite(CVars in, CVars &out){
|
||||
out["invite_id"] ="0";// we will set if all okay
|
||||
const PGresult *res = pgsql_query("SELECT id FROM members_family_relative "
|
||||
" WHERE LOWER('%s') = LOWER(email) AND member_id= %lu", in["email"].c_str(), member_id);
|
||||
if (res != NULL && pgsql_num_rows(res) == 0) {
|
||||
if (res != NULL && pgsql_num_rows(res) > 0 && pgsql_num_rows(res) == 0 ) {
|
||||
|
||||
CVars xx;
|
||||
xx["member_id"] = member_id;
|
||||
|
||||
Reference in New Issue
Block a user