From 545ea3a51c3042473f6dd3ba1a27f8cfa29d653e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 16 Mar 2010 15:09:09 +0100 Subject: [PATCH] Fix visibility levels MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- classes/profile.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/profile.php b/classes/profile.php index ac6223e..22d08e8 100644 --- a/classes/profile.php +++ b/classes/profile.php @@ -131,13 +131,14 @@ class Profile $minvis = self::VISIBILITY_PUBLIC; } if ($visibility == null) { - $visibility = array($minvis); + $visibility = $minvis; } if ($minvis == self::VISIBILITY_PUBLIC) { - $visibility = array(self::VISIBILITY_PUBLIC); + $visibility = self::VISIBILITY_PUBLIC; } + $visibility = self::$v_values[$visibility]; self::$contexts[$asked_vis] = $visibility; return $visibility; -- 2.1.4