A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: public_html/api.php

Line Number: 166