diff options
author | Habeas Codice <habeascodice@federated.social> | 2015-01-28 17:40:39 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2015-01-28 17:40:39 -0800 |
commit | d59bd31a682a58e0d34a66e06ce8f504189f98d5 (patch) | |
tree | 3a34b706f63f8f41bb76c5a049f3bc356d8c265f /mod/directory.php | |
parent | 1a537888333afb052e9eb4954091fd163f5b78d1 (diff) | |
parent | 54fd8b21db2d8f3841cf590f88611a1d4f44ce48 (diff) | |
download | volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.tar.gz volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.tar.bz2 volse-hubzilla-d59bd31a682a58e0d34a66e06ce8f504189f98d5.zip |
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mod/directory.php b/mod/directory.php index 4ceda293d..2a07208a4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -274,17 +274,21 @@ function directory_content(&$a) { $arr = array('contact' => $rr, 'entry' => $entry); call_hooks('directory_item', $arr); - + + unset($profile); + unset($location); + + if(! $arr['entry']) { + continue; + } + if($sort_order == '' && $suggest) { $entries[$addresses[$rr['address']]] = $arr['entry']; // Use the same indexes as originally to get the best suggestion first } + else { $entries[] = $arr['entry']; } - unset($profile); - unset($location); - - } ksort($entries); // Sort array by key so that foreach-constructs work as expected |