Fixes virtualalias visibility.
authorStéphane Jacob <sj@m4x.org>
Mon, 24 Oct 2011 22:11:50 +0000 (00:11 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 24 Oct 2011 22:11:50 +0000 (00:11 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile.php

index c780786..7428f14 100644 (file)
@@ -273,7 +273,7 @@ class ProfileModule extends PLModule
         $page->setTitle($profile->fullName());
 
         // Determines and displays the virtual alias.
-        if (!is_null($owner) && $profile->isVisible($profile->alias_pub)) {
+        if (!is_null($owner) && $profile->alias_pub == 'public') {
             $page->assign('virtualalias', $owner->emailAlias());
         }