aboutsummaryrefslogblamecommitdiffstats
path: root/Zotlabs/Widget/Common_friends.php
blob: a67b9312ce184452896761a60f30b23add737fc7 (plain) (tree)


















                                                                                                                    
<?php

namespace Zotlabs\Widget;

require_once('include/contact_widgets.php');

class Common_friends {

	function widget($arr) {

		if((! \App::$profile['profile_uid']) 
			|| (! perm_is_allowed(\App::$profile['profile_uid'],get_observer_hash(),'view_contacts'))) {
			return '';
		}

		return common_friends_visitor_widget(\App::$profile['profile_uid']);

	}
}