Sostituisci
Codice PHP:
cat_path("0","$output"); 
con
Codice PHP:
return cat_path("0","$output");