summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngie Byron2009-10-16 15:52:33 (GMT)
committerAngie Byron2009-10-16 15:52:33 (GMT)
commitbac6eed5ffa6c64d33c5c4bbd419336f0ca703db (patch)
tree057eef5fb0060437afddbcc3c4faecd6ac0b57b1
parentd854417e0c05d65ed6f211906f851998640469f3 (diff)
#606460 by peximo: Fixed Node revision test fatal error.
-rw-r--r--modules/simpletest/drupal_web_test_case.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php
index e2cb53e0..bf8e8e7 100644
--- a/modules/simpletest/drupal_web_test_case.php
+++ b/modules/simpletest/drupal_web_test_case.php
@@ -730,7 +730,7 @@ class DrupalWebTestCase extends DrupalTestCase {
'value' => $this->randomName(32),
'format' => filter_default_format(),
);
- $langcode = isset($settings['language']) ? $settings['language'] : FIELD_LANGUAGE_NONE;
+ $langcode = !empty($settings['language']) ? $settings['language'] : FIELD_LANGUAGE_NONE;
$settings['body'][$langcode][0] += $body;
$node = (object) $settings;