<?php if (is_array($secondary_links)): ?>
<ul id="secondary">
<?php foreach (array_reverse($secondary_links) as $link): ?>
<li><?php print phptemplate_wrap_links($link, 2); ?></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
if you dont define any secondary links you get as output
<ul id="secondary">
</ul>
this is incorrect xhtml:
xmllint --valid --noout t.xml
t.xml:41: element ul: validity error : Element ul content does not follow the DTD, expecting (li)+, got ()
</ul>
i guess $secondary_links contains a link list where all elements have empty properties. there for is_array will always give true but phptemplate_wrap_links will return nothing.
Comments
Comment #1
darix commentedthe php code in the first code block is from friendselectric
Comment #2
Bèr Kessels commentedin HEAD we render the links in ULS, from the menu settings. AAFAIK this issue is fixed with that too.
Comment #3
(not verified) commented