From 53e4395156e09a2eeb918ce359e12f91ca49a11f Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sat, 24 Mar 2007 15:53:29 +0000 Subject: [PATCH] Fix boxpattern behaviour git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@228 9869982d-c50d-0410-be91-f2a2ec7c7c7b --- banana/banana.inc.php.in | 2 +- banana/nntpcore.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/banana/banana.inc.php.in b/banana/banana.inc.php.in index d7acd83..5baa99a 100644 --- a/banana/banana.inc.php.in +++ b/banana/banana.inc.php.in @@ -256,7 +256,7 @@ class Banana return Banana::$page->kill(_b_('Connexion non-valide')); } if (Banana::$action & Banana::ACTION_BOX_NEEDED) { - if(Banana::$boxpattern && !preg_match('/' . Banana::$boxpattern . '/i', $group)) { + if(Banana::$boxpattern && !preg_match('/' . Banana::$boxpattern . '/i', Banana::$group)) { Banana::$page->setPage('group'); return Banana::$page->kill(_b_("Ce newsgroup n'existe pas ou vous n'avez pas l'autorisation d'y accéder")); } diff --git a/banana/nntpcore.inc.php b/banana/nntpcore.inc.php index 7867145..f1cf460 100644 --- a/banana/nntpcore.inc.php +++ b/banana/nntpcore.inc.php @@ -352,7 +352,7 @@ class BananaNNTPCore $groups = array(); foreach ($list as $result) { list($group, $last, $first, $p) = explode(' ', $result, 4); - if (!is_null(Banana::$boxpattern) || preg_match('@' . Banana::$boxpattern . '@i', $group)) { + if (!Banana::$boxpattern || preg_match('@' . Banana::$boxpattern . '@i', $group)) { $groups[$group] = array(intval($last), intval($first), $p); } } -- 2.1.4