Fix invalid argument supplied for foreach in the tmgmt_contentapi.module file.
Getting this list of warnings on every Cron run.
[warning] Invalid argument supplied for foreach() tmgmt_contentapi.module:482 [warning] array_map(): Expected parameter 2 to be an array, null given tmgmt_contentapi.module:497 [warning] max(): When only one parameter is given, it must be an array tmgmt_contentapi.module:497 [warning] Invalid argument supplied for foreach() tmgmt_contentapi.module:499 [warning] Invalid argument supplied for foreach() tmgmt_contentapi.module:639 [warning] Invalid argument supplied for foreach() tmgmt_contentapi.module:654 [warning] Invalid argument supplied for foreach() tmgmt_contentapi.module:671
We are using and have configured API v2 only.