X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fprofilefields.inc.php;h=27ffeb222b70202cf67ae0df523e09724fe52440;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=83f3fb00f3480848ce048737e38101e2873836cd;hpb=c91c11bac1c6556259861dab1d3c6789b8a0eb8a;p=platal.git 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) {