]> git.mxchange.org Git - friendica.git/blobdiff - include/ForumManager.php
Scrape: Changed detection for the profile link
[friendica.git] / include / ForumManager.php
index 73eb511de60b2374d687ea58088c6f2e041a5117..99a78be71ec56ed0d5bfe05d770b3c57dc89c75a 100644 (file)
@@ -86,10 +86,10 @@ class ForumManager {
                $total = count($contacts);
                $visible_forums = 10;
 
-               if(count($contacts)) {
+               if(dba::is_result($contacts)) {
 
                        $id = 0;
-$a = get_app();
+
                        foreach($contacts as $contact) {
 
                                $selected = (($cid == $contact['id']) ? ' forum-selected' : '');
@@ -100,7 +100,7 @@ $a = get_app();
                                        'name' => $contact['name'],
                                        'cid' => $contact['id'],
                                        'selected'      => $selected,
-                                       'micro' => $a->get_cached_avatar_image(proxy_url($contact['micro'], false, PROXY_SIZE_MICRO)),
+                                       'micro' => App::remove_baseurl(proxy_url($contact['micro'], false, PROXY_SIZE_MICRO)),
                                        'id' => ++$id,
                                );
                                $entries[] = $entry;