diff options
| author | Simon Rettberg | 2025-05-09 14:55:44 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-05-09 14:55:44 +0200 |
| commit | 66946ca799ca10489c4f41c499515d0df4633129 (patch) | |
| tree | 76ca04c4a360d683309f193badb8ad882c5cac10 /modules-available/roomplanner/api.inc.php | |
| parent | [rebootcontrol] POST -> GET for fetching client status via AJAX (diff) | |
| download | slx-admin-66946ca799ca10489c4f41c499515d0df4633129.tar.gz slx-admin-66946ca799ca10489c4f41c499515d0df4633129.tar.xz slx-admin-66946ca799ca10489c4f41c499515d0df4633129.zip | |
Use http_response_code() instead of header(), add a few missing repsonse codes
Diffstat (limited to 'modules-available/roomplanner/api.inc.php')
| -rw-r--r-- | modules-available/roomplanner/api.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/roomplanner/api.inc.php b/modules-available/roomplanner/api.inc.php index 1af25ca8..c66640a0 100644 --- a/modules-available/roomplanner/api.inc.php +++ b/modules-available/roomplanner/api.inc.php @@ -9,7 +9,7 @@ if (Request::any('show') === 'svg') { Request::any('url', false, 'bool')); if ($ret === false) { if (Request::any('fallback', 0, 'int') === 0) { - Header('HTTP/1.1 404 Not Found'); + http_response_code(404); exit; } $ret = <<<EOF |
