fix query b

This commit is contained in:
CHIEFSOFT\ameye
2024-01-23 10:31:12 -05:00
parent 57274011a5
commit 28f5f7bc77
+1 -1
View File
@@ -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;