This PR fix the (Warning: Invalid argument supplied for foreach() in RestTool.php (line 379)) warning triggered in RestTool.php as stated in issue #500 and #506
This happen when $error->Errors is null while foreach expect an array. Add a cast (array) seem's to be a clean way to fix this.
This PR fix the (Warning: Invalid argument supplied for foreach() in RestTool.php (line 379)) warning triggered in RestTool.php as stated in issue #500 and #506
This happen when $error->Errors is null while foreach expect an array. Add a cast (array) seem's to be a clean way to fix this.
Code Before
Code After
Feedback welcome :)