mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2024-12-23 02:04:46 +02:00
remove process_get_return function declaration
This commit is contained in:
parent
18133b4dca
commit
4d1f8cb123
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user