diff options
author | plegall <plg@piwigo.org> | 2006-06-13 20:38:21 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2006-06-13 20:38:21 +0000 |
commit | 728594c2fa748399571febcff27e7563b01d430f (patch) | |
tree | 7754d9dd118f589d94c768e933dc1327977f3c80 /admin | |
parent | d2f1e0a64f7479469cbdb7496b07ca3e6ab82ecd (diff) |
bug 402 fixed: invalid empty HTML list when no categories to list.
git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1347 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin')
-rw-r--r-- | admin/cat_list.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index 4c266c01f..ddeddcaa7 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -249,6 +249,8 @@ SELECT id_uppercat, COUNT(*) AS nb_subcats { $categories[$row['id_uppercat']]['nb_subcats'] = $row['nb_subcats']; } + + $template->assign_block_vars('categories', array()); } foreach ($categories as $category) @@ -267,7 +269,7 @@ foreach ($categories as $category) } $template->assign_block_vars( - 'category', + 'categories.category', array( 'NAME' => $category['name'], 'ID' => $category['id'], @@ -288,7 +290,7 @@ foreach ($categories as $category) if (empty($category['dir'])) { $template->assign_block_vars( - 'category.delete', + 'categories.category.delete', array( 'URL'=>$self_url.'&delete='.$category['id'] ) @@ -298,7 +300,7 @@ foreach ($categories as $category) if ($category['nb_images'] > 0) { $template->assign_block_vars( - 'category.elements', + 'categories.category.elements', array( 'URL'=>$base_url.'element_set&cat='.$category['id'] ) |