From 2e04c41b702b2ff21bc0bd9cee5fe119eb863950 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 25 Oct 2011 00:28:38 +0200 Subject: [PATCH] I should have merged before last commit... MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile.php b/modules/profile.php index 98a3e3e..6714c4e 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -273,7 +273,7 @@ class ProfileModule extends PLModule $page->setTitle($profile->fullName()); // Determines and displays the virtual alias. - if (!is_null($owner) && $profile->alias_pub == 'public') { + if (!is_null($owner) && $profile->isVisible($profile->alias_pub)) { $page->assign('virtualalias', $owner->emailAlias()); } -- 2.1.4