Skip to content
Snippets Groups Projects
Commit bac6eed5 authored by Angie Byron's avatar Angie Byron
Browse files

#606460 by peximo: Fixed Node revision test fatal error.

parent d854417e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -730,7 +730,7 @@ protected function drupalCreateNode($settings = array()) {
'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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment