From f74fb084d80d48a507f3c847e36fc1014647d601 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sun, 8 Mar 2009 19:48:45 +0100 Subject: [PATCH] Set default value for visibility when not logged. Signed-off-by: Florent Bruneau --- classes/profile.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/classes/profile.php b/classes/profile.php index 11b08ed..6e68dc9 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -61,6 +61,9 @@ class Profile $this->data = $data; $this->pid = $this->data['pid']; $this->hrpid = $this->data['hrpid']; + if (!S::logged()) { + $this->setVisibilityLevel(self::VISIBILITY_PUBLIC); + } } public function id() -- 2.1.4