aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Directory.php
diff options
context:
space:
mode:
authorAndrew Manning <tamanning@zoho.com>2018-03-05 20:06:47 -0500
committerAndrew Manning <tamanning@zoho.com>2018-03-05 20:06:47 -0500
commit9b13db1c4896e6a8b0a55195530f5449999e811d (patch)
tree0588de154eec12481cd56e448a0a682bb94341aa /Zotlabs/Module/Directory.php
parent058f7277b52bdcdb80dc3e28bf0ec93a573195a7 (diff)
parentc462d2f15eb2d463706403676b00bbd7bd111443 (diff)
downloadvolse-hubzilla-9b13db1c4896e6a8b0a55195530f5449999e811d.tar.gz
volse-hubzilla-9b13db1c4896e6a8b0a55195530f5449999e811d.tar.bz2
volse-hubzilla-9b13db1c4896e6a8b0a55195530f5449999e811d.zip
Merge branch 'dev' into oauth2
Diffstat (limited to 'Zotlabs/Module/Directory.php')
-rw-r--r--Zotlabs/Module/Directory.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Directory.php b/Zotlabs/Module/Directory.php
index 85c0be6b6..62a1670f9 100644
--- a/Zotlabs/Module/Directory.php
+++ b/Zotlabs/Module/Directory.php
@@ -101,6 +101,11 @@ class Directory extends \Zotlabs\Web\Controller {
if($suggest) {
$r = suggestion_query(local_channel(),get_observer_hash());
+
+ if(! $r) {
+ notice( t('No default suggestions were found.') . EOL);
+ return;
+ }
// Remember in which order the suggestions were
$addresses = array();