Merge branch 'xorg/maint' into xorg/master
[platal.git] / modules / profile.php
index 6714c4e..98a3e3e 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());
         }