I think it has something to do with this part:
Code:
Content visible to verified customers only.
Because 'all' isn't a real category then $catinfo isn't being populated.
changing to:
Code:
Content visible to verified customers only.
seems to populate $catinfo correctly.
Then changing :
Code:
Content visible to verified customers only.
to:
Code:
Content visible to verified customers only.
Sorts out the title formatting. I'm no expert though... there might be a tidier way!
Alex