Invalid argument supplied for foreach()

My error log is flooded with this error:
Invalid argument supplied for foreach()

Is this a bug?