]> git.mxchange.org Git - friendica.git/blobdiff - mod/directory.php
Fix potential bugs without expected behavior change
[friendica.git] / mod / directory.php
index c32cf5dbb8f93e204f7db42f80551a166dd05c19..8ca8d8158e2d2640667703cf1a0384aa8021c123 100644 (file)
@@ -111,8 +111,11 @@ function directory_content(App $a)
                        $photo = 'photo';
                }
 
+               $entries = [];
+
                while ($rr = DBA::fetch($r)) {
 
+               while ($rr = DBA::fetch($r)) {
                        $itemurl = (($rr['addr'] != "") ? $rr['addr'] : $rr['profile_url']);
 
                        $profile_link = $rr['profile_url'];