Skip to content
Browse files

no need for array notation here.

  • Loading branch information...
1 parent d40d093 commit 7ad30b1797388f1f373bc7ae365ae4d7e3f883f1 @craigh committed Apr 16, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/modules/Downloads/templates/user/view.tpl
View
6 src/modules/Downloads/templates/user/view.tpl
@@ -10,10 +10,10 @@
<td colspan='2'><a href="{modurl modname="Downloads" type="user" func="view" category=0}">{gt text='Back to'} <strong>{gt text='Root'}</strong></a></td>
</tr>
{/if}
- {if (isset($categoryinfo.0)) && ($categoryinfo.0->getPid() <> 0)}
+ {if (isset($categoryinfo)) && ($categoryinfo->getPid() <> 0)}
<tr class='downloads-parent'>
- <td><a href="{modurl modname="Downloads" type="user" func="view" category=$categoryinfo.0->getPid()}">{img modname='core' set='icons/medium' src='folder_blue.png' __title='View parent category' __alt='View parent category' class='tooltips'}</a></td>
- <td colspan='2'><a href="{modurl modname="Downloads" type="user" func="view" category=$categoryinfo.0->getPid()}">{gt text='Back to parent: '} <strong>{$categoryinfo.0->getPid()|getcategorynamefromid|safetext}</strong></a></td>
+ <td><a href="{modurl modname="Downloads" type="user" func="view" category=$categoryinfo->getPid()}">{img modname='core' set='icons/medium' src='folder_blue.png' __title='View parent category' __alt='View parent category' class='tooltips'}</a></td>
+ <td colspan='2'><a href="{modurl modname="Downloads" type="user" func="view" category=$categoryinfo->getPid()}">{gt text='Back to parent: '} <strong>{$categoryinfo->getName()|safetext}</strong></a></td>
</tr>
{/if}
{foreach from=$subcategories item='sc'}

0 comments on commit 7ad30b1

Please sign in to comment.
Something went wrong with that request. Please try again.