member is
This commit is contained in:
@@ -323,7 +323,7 @@ long RecoReferAFreind(int itm_count, CVars in, CVars &out ){
|
|||||||
int ic = itm_count;
|
int ic = itm_count;
|
||||||
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
long member_id = REQ_LONG(in, "member_id", 1, -1);
|
||||||
res = pgsql_query(" SELECT id FROm members "
|
res = pgsql_query(" SELECT id FROm members "
|
||||||
" WHERE member_id = %lu ",member_id);
|
" WHERE id = %lu ",member_id);
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
|
|
||||||
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
snprintf(vname, sizeof (vname), "title_%05d", ic);
|
||||||
|
|||||||
Reference in New Issue
Block a user