small changes to a couple of lookup functions which we need to use a bit more

This commit is contained in:
friendica
2014-02-20 17:20:24 -08:00
parent 057e6660ca
commit e12f6f1bd9
4 changed files with 9 additions and 5 deletions

View File

@@ -543,7 +543,7 @@ function widget_photo_albums($arr) {
$channelx = channelx_by_n($a->profile['profile_uid']);
if((! $channelx) || (! perm_is_allowed($a->profile['profile_uid'],get_observer_hash(),'view_photos')))
return '';
return photos_album_widget($channelx[0],$a->get_observer());
return photos_album_widget($channelx,$a->get_observer());
}