fix required

This commit is contained in:
CHIEFSOFT\ameye
2023-12-30 11:17:33 -05:00
parent 2c9ba69e7e
commit 5d40bfd1cb
+5 -5
View File
@@ -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) {