fixed invalid arguments of foreach() in yarpp_results function