0

Can you advise me please?

I have this code and I am displaying it on multiple pages (only with a changed VID). Everywhere, however, I leap above error.

How to modify this code so that it worked?

Thank you very much.

<?php
$vid = 4;
function termSort($a, $b) {return strcmp($a->name, $b->name);}
$terms = taxonomy_get_tree($vid);   usort ($terms,'termSort');
foreach ($terms as $term) {
if ($term->depth == 0) 
{  

print "" .l("<b>Flight  -&nbsp;</b> " .$term->name,'taxonomy/term/'.$term->tid, array('attributes' => array('title' => $term->name, ), 'html' => TRUE) ). "";


} 
}

?>
Hefi
  • 47
  • 1
  • 1
  • 6

0 Answers0