]> git.mxchange.org Git - friendica.git/blobdiff - mod/profile.php
fbrowser: Take the picture as that mostly fits
[friendica.git] / mod / profile.php
index 0913573a83209a2fb46f5698037277d974b9a9ea..c3f58ab528142fcc850124610eb2883e375cbe62 100644 (file)
@@ -181,10 +181,6 @@ function profile_content(&$a, $update = 0) {
                $commpage = (($a->profile['page-flags'] == PAGE_COMMUNITY) ? true : false);
                $commvisitor = (($commpage && $remote_contact == true) ? true : false);
 
-               if(feature_enabled($a->profile['profile_uid'],'photos_widget')) {
-                       require_once('include/photos.php');
-                       $a->page['aside'] .= widget_photos($a->profile);
-               }
                $a->page['aside'] .= posted_date_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],$a->profile['profile_uid'],true);
                $a->page['aside'] .= categories_widget($a->get_baseurl(true) . '/profile/' . $a->profile['nickname'],(x($category) ? xmlify($category) : ''));
 
@@ -304,7 +300,7 @@ function profile_content(&$a, $update = 0) {
        $parents_arr = array();
        $parents_str = '';
 
-       if(count($r)) {
+       if (dba::is_result($r)) {
                foreach($r as $rr)
                        $parents_arr[] = $rr['item_id'];
                $parents_str = implode(', ', $parents_arr);