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