wibble
authorx2000habouzit <x2000habouzit>
Mon, 3 Jan 2005 08:53:14 +0000 (08:53 +0000)
committerx2000habouzit <x2000habouzit>
Mon, 3 Jan 2005 08:53:14 +0000 (08:53 +0000)
include/groups.inc.php
subscribe.php

index f5828ed..f7ab98f 100644 (file)
@@ -41,7 +41,7 @@ class BananaGroups {
             return false;
         }
 
-        foreach ($mylist as $g=>$l) {
+        foreach ($list as $g=>$l) {
             $this->overview[$g][0] = isset($desc[$g]) ? $desc[$g] : '-';
             $this->overview[$g][1] = $l[0];
         }
index 1892545..1c7063d 100644 (file)
@@ -58,7 +58,7 @@ foreach ($groups->overview as $g => $d) {
     </td>
     <td class="<?php echo $css["unread"]; ?>">
       <input type="checkbox" name="subscribe[]" value="<?php echo $g;?>"
-      <?php if (in_array($g,$banana->profile['subscribe']) echo 'checked="checked"'; ?> />
+      <?php if (in_array($g, $banana->profile['subscribe'])) echo 'checked="checked"'; ?> />
     </td>
     <td class="<?php echo $css["group"]; ?>">
       <?php echo "<a href=\"thread.php?group=$g\">$g</a>";?>