fail zotinfo if no locations discovered

This commit is contained in:
Mike Macgirvin 2024-01-31 15:04:06 +11:00
parent 946584eaf3
commit 9c2f3c11ac

View file

@ -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);