From f505e36ca10b169f9e869fedaa1b7d79dec57039 Mon Sep 17 00:00:00 2001 From: eileen Date: Sun, 28 Jul 2013 10:46:45 +1200 Subject: [PATCH] CRM-13072 further tweak on example formatter --- tests/phpunit/CiviTest/CiviUnitTestCase.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index 7c60277efc..e37c76dc21 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1942,6 +1942,9 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { if (isset($result['values']) && is_array($result['values'])) { foreach ($result['values'] as $index => &$values) { + if(!is_array($values)) { + continue; + } foreach($values as $key => &$value) { if(substr($key, 0, 3) == 'api' && is_array($value)) { if(isset($value['is_error'])) { -- 2.25.1