From 4d1f8cb1232aff153ea2c28af004c4cde7fa3a0a Mon Sep 17 00:00:00 2001 From: Shea Zerda Date: Mon, 15 Jan 2024 13:43:40 -0500 Subject: [PATCH] remove process_get_return function declaration --- data/web/json_api.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/data/web/json_api.php b/data/web/json_api.php index 654423c3e..879ae1739 100644 --- a/data/web/json_api.php +++ b/data/web/json_api.php @@ -414,15 +414,6 @@ if (isset($_GET['query'])) { } 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) {