X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=install.d%2Fformat.inc.php;h=9fb20f3c296f3a965b85d15b3fa8b08691715811;hb=4491aea0656fd2cd87349929ea7ca3523db9e363;hp=46e2ae198794ae3800961b93a138235552d40f58;hpb=cf0b2c70d5934ffdb36132028e7ededbb9580a51;p=banana.git
diff --git a/install.d/format.inc.php b/install.d/format.inc.php
index 46e2ae1..9fb20f3 100644
--- a/install.d/format.inc.php
+++ b/install.d/format.inc.php
@@ -72,7 +72,7 @@ function formatDisplayHeader($_header,$_text,$_spool) {
case "newsgroups":
$res = "";
$groups = preg_split("/(\t| )*,(\t| )*/",$_text);
- foreach ($_groups as $g) {
+ foreach ($groups as $g) {
$res.=''.$g.', ';
}
return substr($res,0, -2);
@@ -99,8 +99,8 @@ function formatDisplayHeader($_header,$_text,$_spool) {
$rsl = "";
$ndx = 1;
$text=str_replace("><","> <",$_text);
- $text=preg_split("/( |\t)/",strtr($_text,$_spool->ids));
- $parents=preg_grep("/^\d+$/",$_text);
+ $text=preg_split("/( |\t)/",strtr($text,$_spool->ids));
+ $parents=preg_grep("/^\d+$/",$text);
$p=array_pop($parents);
while ($p) {
$rsl .= "group}"