diff --git a/wrenchboard/src/shared_tool/account_mngt.cc b/wrenchboard/src/shared_tool/account_mngt.cc index df65165d..3f479ac3 100644 --- a/wrenchboard/src/shared_tool/account_mngt.cc +++ b/wrenchboard/src/shared_tool/account_mngt.cc @@ -30,13 +30,9 @@ wrenchboard=> SELECT * FROM use_preferences WHERE status = 1 ORDER BY id ASC; (4 rows) */ try { - long limit = REQ_LONG(in, "limit", 1, -1); - REQ_LONG(in, "page", 1, -1); - + long member_id = REQ_LONG(in, "member_id", 1, -1); out["total_record"] = "0"; - const PGresult *res; - res = pgsql_query("SELECT * FROM use_preferences WHERE status = 1 ORDER BY id ASC"); if (res != NULL && pgsql_num_rows(res) > 0) { @@ -64,6 +60,10 @@ wrenchboard=> SELECT * FROM use_preferences WHERE status = 1 ORDER BY id ASC; out[vname] = rec["added"]; } } + + + + ret = PHP_API_OK; out["status"] = "OK"; } catch (bad_parameter) {