mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
fail zotinfo if no locations discovered
This commit is contained in:
parent
946584eaf3
commit
9c2f3c11ac
1 changed files with 4 additions and 0 deletions
|
@ -3115,6 +3115,10 @@ class Libzot
|
|||
if ($x) {
|
||||
$ret['locations'] = $x;
|
||||
}
|
||||
else {
|
||||
return[['message'] = 'System error: No locations.'];
|
||||
}
|
||||
|
||||
$ret['site'] = self::site_info();
|
||||
|
||||
Hook::call('zotinfo', $ret);
|
||||
|
|
Loading…
Reference in a new issue