syntx fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user