diff options
Diffstat (limited to 'series/trunk/admin/mansub.php')
-rw-r--r-- | series/trunk/admin/mansub.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/series/trunk/admin/mansub.php b/series/trunk/admin/mansub.php index 72385be..88bed6e 100644 --- a/series/trunk/admin/mansub.php +++ b/series/trunk/admin/mansub.php | |||
@@ -27,9 +27,14 @@ if (instaDisc_isAdmin($_SESSION['username'])) | |||
27 | } else { | 27 | } else { |
28 | $subs = instaDisc_listSubscriptions($_SESSION['username']); | 28 | $subs = instaDisc_listSubscriptions($_SESSION['username']); |
29 | } | 29 | } |
30 | $i=0; | 30 | $i=0; $j=0; |
31 | for ($i=0;isset($subs[$i]);$i++) | 31 | for ($i=0;isset($subs[$i]);$i++) |
32 | { | 32 | { |
33 | $j++; | ||
34 | } | ||
35 | $j--; | ||
36 | for ($i=0;$i<$j;$i++) | ||
37 | { | ||
33 | $template->adds_block('SUBSCRIPTIONS', array( 'IDENTITY' => $subs[$i]['identity'], | 38 | $template->adds_block('SUBSCRIPTIONS', array( 'IDENTITY' => $subs[$i]['identity'], |
34 | 'ID' => $subs[$i]['id'])); | 39 | 'ID' => $subs[$i]['id'])); |
35 | } | 40 | } |