From ddd2bd38594906162b0f8c482cfbe466752bdf40 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Tue, 30 May 2023 13:44:23 -0400 Subject: [PATCH] syntx fix --- wrenchboard/src/shared_tool/reco_egine.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wrenchboard/src/shared_tool/reco_egine.cc b/wrenchboard/src/shared_tool/reco_egine.cc index cb7bb83b..3db05c74 100644 --- a/wrenchboard/src/shared_tool/reco_egine.cc +++ b/wrenchboard/src/shared_tool/reco_egine.cc @@ -164,6 +164,7 @@ long RecoCheckFamilyLogin(int itm_count, CVars in, CVars &out ){ const PGresult *res; char vname[30]; try { + int ic = itm_count; long member_id = REQ_LONG(in, "member_id", 1, -1); res = pgsql_query("SELECT count(id) AS family_count FROM members_family WHERE member_id = %lu AND status = 1 AND last_login IS NULL ",member_id); if (res != NULL && pgsql_num_rows(res) > 0) { @@ -205,6 +206,7 @@ long RecoCheckFamilyCount( int itm_count, CVars in, CVars &out ){ const PGresult *res; char vname[30]; try { + int ic = itm_count; long member_id = REQ_LONG(in, "member_id", 1, -1); res = pgsql_query("SELECT count(id) AS family_count FROM members_family WHERE member_id = %lu AND status = 1 AND last_login IS NULL ",member_id); if (res != NULL && pgsql_num_rows(res) == 0) { @@ -246,6 +248,7 @@ long RecoCheckCoupons( int itm_count, CVars in, CVars &out ){ const PGresult *res; char vname[30]; try { + int ic = itm_count; long member_id = REQ_LONG(in, "member_id", 1, -1); res = pgsql_query("SELECT id AS coupons_count FROM coupons_allocation WHERE member_id = %lu AND amount> 0 AND active IS NULL ",member_id); if (res != NULL && pgsql_num_rows(res) > 0) { @@ -292,6 +295,7 @@ long RecoCheckBlog( int itm_count, CVars in, CVars &out ){ const PGresult *res; char vname[30]; try { + int ic = itm_count; long member_id = REQ_LONG(in, "member_id", 1, -1); snprintf(vname, sizeof (vname), "title_%05d", ic);