X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fnntp.inc.php;h=62458030f25acc21e59e43e8492d60785994a075;hb=a102372385e252d7801f7f07cc75cbd9a2723d50;hp=a7f2e5c7d7ff7ae1fac8830566c516e2becc779b;hpb=b4d2fbe0d5aec689ac27f57af2e98fb28c1ad87c;p=banana.git diff --git a/banana/nntp.inc.php b/banana/nntp.inc.php index a7f2e5c..6245803 100644 --- a/banana/nntp.inc.php +++ b/banana/nntp.inc.php @@ -61,7 +61,11 @@ class BananaNNTP extends BananaNNTPCore implements BananaProtocoleInterface } else { $list = $this->listGroups(); if ($mode == Banana::BOXES_SUB) { - $sub = array_flip(Banana::$profile['subscribe']); + if (is_array(Banana::$profile['subscribe'])) { + $sub = array_flip(Banana::$profile['subscribe']); + } else { + $sub = array(); + } $list = array_intersect_key($list, $sub); } }