// fix category_tree if no tree

This commit is contained in:
tDidierjean committed 2011-11-23 23:13:15 +00:00
1 parent 0cbb18dbc1
commit 1e03dd00fb
1 file changed
+7 -5
@@ -11,12 +11,14 @@
}); });
}); });
</script> </script>
{l s='Go to category:'} {if isset($category_tree)}
<select id="go_to_categ" name="go_to_categ"> {l s='Go to category:'}
{foreach from=$category_tree item=categ} <select id="go_to_categ" name="go_to_categ">
{foreach from=$category_tree item=categ}
<option value="{$categ->id}" {if $categ->selected}selected="selected"{/if} > <option value="{$categ->id}" {if $categ->selected}selected="selected"{/if} >
{$categ->dashes}{$categ->name} {$categ->dashes}{$categ->name}
</option> </option>
{/foreach} {/foreach}
</select> </select>
{/if}
{/block} {/block}