block_public_blackout setting

This commit is contained in:
redmatrix 2016-01-27 23:02:36 -08:00
parent 722d7ff38d
commit ae3ca2b7df

View File

@ -924,6 +924,9 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
$pdesc = true;
$reddress = true;
if($block && intval(get_config('system','block_public_blackout')))
return $o;
if((! is_array($profile)) && (! count($profile)))
return $o;
@ -935,6 +938,7 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
$show_connect = false;
$profile['picdate'] = urlencode($profile['picdate']);
call_hooks('profile_sidebar_enter', $profile);