Skip to content

Commit

Permalink
remove process_get_return function declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
Shea Zerda committed Jan 15, 2024
1 parent 18133b4 commit 4d1f8cb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions data/web/json_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,15 +414,6 @@ function api_log($_data) {
}
break;
case "get":
function process_get_return($data, $object = true) {
if ($object === true) {
$ret_str = '{}';
}
else {
$ret_str = '[]';
}
echo (!isset($data) || empty($data)) ? $ret_str : json_encode($data, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
}
// only allow GET requests to GET API endpoints
assert_method("GET");
switch ($category) {
Expand Down

0 comments on commit 4d1f8cb

Please sign in to comment.