Help with PHP error required

I would guess your foreach error is generated from your scandir() error.

You will need to post the code for line 720 and probably some code before and after.