### Eclipse Workspace Patch 1.0
#P ngpe_drupal
Index: modules/node/node.module
===================================================================
--- modules/node/node.module	(revision 29077)
+++ modules/node/node.module	(working copy)
@@ -1993,11 +1993,13 @@
 
   if (user_access('administer nodes')) {
     // Populate the "authored by" field.
-    if ($account = user_load(array('name' => $node->name))) {
-      $node->uid = $account->uid;
-    }
-    else {
-      $node->uid = 0;
+    if (!isset($node->uid)) {
+      if ($account = user_load(array('name' => $node->name))) {
+        $node->uid = $account->uid;
+      }
+      else {
+        $node->uid = 0;
+      }
     }
   }
 
