get rid of 'Invalid argument supplied for foreach()' errors
reduce php error 'config.php not found' in api calls
Merge remote-tracking branch 'upstream/develop' into develop
Merge pull request #9 from pafei/develop

Reduce php error messages in error_log.
get rid of 'Invalid argument supplied for foreach()' errors