Interest count
This commit is contained in:
@@ -164,7 +164,7 @@ long RecoOffersInterest(int itm_count, CVars in, CVars &out ){
|
||||
out[vname] = "Continue";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_button_text_%05d", ic);
|
||||
out[vname] = "short_button_text";
|
||||
out[vname] = "View now";
|
||||
|
||||
snprintf(vname, sizeof (vname), "short_title_%05d", ic);
|
||||
out[vname] = "Interest Pending";
|
||||
@@ -259,7 +259,7 @@ long RecoCheckFamilyLogin(int itm_count, CVars in, CVars &out ){
|
||||
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);
|
||||
res = pgsql_query("SELECT id 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) {
|
||||
|
||||
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
||||
|
||||
Reference in New Issue
Block a user