summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index d54f75e0a..1bbeefaa3 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -931,9 +931,8 @@ function node_submit($node) {
global $user;
// A user might assign the node author by entering a user name in the node
- // form, which we then need to translate to a user ID, unless we've already
- // been provided a user ID by other means.
- if (!empty($node->name) && !isset($node->uid)) {
+ // form, which we then need to translate to a user ID.
+ if (isset($node->name)) {
if ($account = user_load_by_name($node->name)) {
$node->uid = $account->uid;
}
@@ -941,6 +940,7 @@ function node_submit($node) {
$node->uid = 0;
}
}
+
$node->created = !empty($node->date) ? strtotime($node->date) : REQUEST_TIME;
$node->validated = TRUE;