Skip to content
Snippets Groups Projects
Commit 0889c01d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #270053 by pwolanin: fixed undefined index.

parent d8ff9967
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
......@@ -62,8 +62,8 @@ function drupalCreateNode($settings = array()) {
);
$defaults['teaser'] = $defaults['body'];
// If we already have a node, we use the original node's created time, and this
if (isset($defaults['created'])) {
$defaults['date'] = format_date($defaults['created'], 'custom', 'Y-m-d H:i:s O');
if (isset($settings['created'])) {
$defaults['date'] = format_date($settings['created'], 'custom', 'Y-m-d H:i:s O');
}
if (empty($settings['uid'])) {
global $user;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment