projects
/
banana.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't fail if the subscription list is invalid
[banana.git]
/
banana
/
nntp.inc.php
diff --git
a/banana/nntp.inc.php
b/banana/nntp.inc.php
index
a7f2e5c
..
6245803
100644
(file)
--- 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) {
} 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);
}
}
$list = array_intersect_key($list, $sub);
}
}