Check for empty array.
This commit is contained in:
parent
e1155158d9
commit
d9cf9674f3
2 changed files with 4 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
20250422.2
|
20250422.3
|
||||||
|
|
|
@ -181,6 +181,9 @@ final class ChatApiRoutes implements RouteHandler, UrlSource {
|
||||||
secure: $secure,
|
secure: $secure,
|
||||||
), false);
|
), false);
|
||||||
|
|
||||||
|
if(empty($servers))
|
||||||
|
return 404;
|
||||||
|
|
||||||
$response->setCacheControl('max-age=300', 'stale-if-error=600', 'public', 'immutable');
|
$response->setCacheControl('max-age=300', 'stale-if-error=600', 'public', 'immutable');
|
||||||
|
|
||||||
// the algo of all time
|
// the algo of all time
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue