А там {$root_categories[5]} или {$root_categories[5]} ?
Не получается ни так ни так. Логика простая и понятная, но почему-то не выводит..
В catalog.php:
$q = db_query("SELECT categoryID, name, products_count, picture, hurl, description FROM ".CATEGORIES_TABLE." WHERE categoryID<>0 and parent=0 ORDER BY name") or die (db_error());
В catalog.tpl.html:
{section name=i loop=$root_categories}
<div>
{if $root_categories[i][3] ne ""}<a href="./{if $smarty.const.CONF_CHPU}{$root_categories[i][4]}{else}index.php?categoryID={$root_categories[i][0]}{/if}"><img border="0" src="./products_pictures/{$root_categories[i][3]}" alt="{$root_categories[i][1]}"></a>{/if}
<br />
{$root_categories[i][5]}
</div>
{/section}