This should be

```PHP
       $hlist .= '</ul>';
```

(otherwise the whole list of links is lost).