aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-26 20:47:53 -0800
committerfriendica <info@friendica.com>2015-01-26 20:47:53 -0800
commitefb6842d748ad35f2843619983a4e3e9b14617a9 (patch)
tree6fe54ef365a292562b3432117c0ab134ed5503fc /mod
parentfc62d7e5775f57949b300eb658f57187446ce381 (diff)
downloadvolse-hubzilla-efb6842d748ad35f2843619983a4e3e9b14617a9.tar.gz
volse-hubzilla-efb6842d748ad35f2843619983a4e3e9b14617a9.tar.bz2
volse-hubzilla-efb6842d748ad35f2843619983a4e3e9b14617a9.zip
superblock enhancements
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php14
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