fb
This commit is contained in:
@@ -109,10 +109,9 @@ long NotificationSystem(CVars in, CVars &out){
|
||||
const PGresult *res;
|
||||
long limit = in["limit"].Long();
|
||||
logfmt(logINFO, "ENTER NotificationSystem()");
|
||||
long contract_id = 0;
|
||||
long push_ret = -1;
|
||||
const PGresult *res = pgsql_query("SELECT count(member_uid) AS mcount,member_uid "
|
||||
" FROM members_notification WHERE status=1 GROUP BY member_uid LIMIT %lu",limit);
|
||||
/* " FROM members_notification WHERE status=1 GROUP BY member_uid LIMIT %lu",limit);
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
for (int i = 0, n = pgsql_num_rows(res); i < n; i++) {
|
||||
map<const char*, const char*>f = pgsql_fetch_assoc(res, i);
|
||||
@@ -140,6 +139,7 @@ long NotificationSystem(CVars in, CVars &out){
|
||||
}
|
||||
} // for loopp
|
||||
} // main nserach
|
||||
*/
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user