From: Stéphane Jacob Date: Mon, 24 Oct 2011 22:28:38 +0000 (+0200) Subject: I should have merged before last commit... X-Git-Tag: xorg/1.1.4~58 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=2e04c41b702b2ff21bc0bd9cee5fe119eb863950;p=platal.git I should have merged before last commit... Signed-off-by: Stéphane Jacob --- 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()); }