projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
947a37b
)
CRM-13072 further tweak on example formatter
author
eileen
<eileen@fuzion.co.nz>
Sat, 27 Jul 2013 22:46:45 +0000
(10:46 +1200)
committer
eileen
<eileen@fuzion.co.nz>
Sat, 27 Jul 2013 22:46:45 +0000
(10:46 +1200)
tests/phpunit/CiviTest/CiviUnitTestCase.php
patch
|
blob
|
blame
|
history
diff --git
a/tests/phpunit/CiviTest/CiviUnitTestCase.php
b/tests/phpunit/CiviTest/CiviUnitTestCase.php
index 7c60277efc90378166dab0173371b0ff43325bdc..e37c76dc215c17c866188cbbbdea6219d4b13347 100644
(file)
--- 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'])) {