@Sebastian-Roth said in Fog Menu loop:

Would it be possible to prevent from this issue when returning and empty string instead of nothing when the key in globalSettings does not exist?

I don’t know about how fog interacts directly with the database but MSSQL has an ifnull statement where if the field is null (or missing in q joined table) you can return a specific alternate string. It appears that mysql has a similar construct.