From 140526de4ad1a48f7dc27ebf652b7c0964d87fff Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Tue, 6 Jul 2010 22:22:04 +0200 Subject: [PATCH] Fix networking selection for profile display MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- include/profilefields.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 83f3fb0..27ffeb2 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -528,16 +528,13 @@ class ProfileNetworking extends ProfileField public function get($flags, $limit = null) { - if (!$flags) { - $flags = Profile::NETWORKING_ALL; - } $nws = array(); $nb = 0; foreach ($this->networks as $id => $nw) { if (($flags & Profile::NETWORKING_WEB) && $nw['network_type']->hasFlag('web') || ($flags & Profile::NETWORKING_IM) && $nw['network_type']->hasFlag('im') || ($flags & Profile::NETWORKING_SOCIAL) && $nw['network_type']->hasFlag('social') || - ($flags & Profile::NETWORKING_ALL)) { + ($flags == Profile::NETWORKING_ALL)) { $nws[$id] = $nw; ++$nb; if (isset($limit) && $nb >= $limit) { -- 2.1.4