Update default.php Coz Makes Error if spaces

Throwws Error when menu has Spaces in Titels or somthing so i decided to make a check if Vars are Consitent and then go to the for loop