diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-14 17:05:32 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-14 17:05:32 +0000 |
commit | fc99c57d870fdda3a79be319c0f42f8277fcbb3b (patch) | |
tree | 88885296a8001ae57e62c788746718713f2418a2 | |
parent | 6a380525d442da1b86e4a5e2738acfa20876ba7a (diff) | |
download | brdo-fc99c57d870fdda3a79be319c0f42f8277fcbb3b.tar.gz brdo-fc99c57d870fdda3a79be319c0f42f8277fcbb3b.tar.bz2 |
#6732: fixing bug 'once anonymous always anoymous' (nodes).
-rw-r--r-- | modules/node.module | 4 | ||||
-rw-r--r-- | modules/node/node.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/node.module b/modules/node.module index a0e67e710..637fabb1b 100644 --- a/modules/node.module +++ b/modules/node.module @@ -460,7 +460,7 @@ function node_save($node) { $v[] = $value; } } - + // Update the node in the database: db_query("UPDATE {node} SET ". implode(', ', $q) ." WHERE nid = '$node->nid'", $v); @@ -1059,7 +1059,7 @@ function node_validate($node) { } // Validate the "authored by" field. - if (empty($node->name) || empty($node->uid)){ + if (empty($node->name)) { // The use of empty() is mandatory in the context of usernames // as the empty string denotes the anonymous user. In case we // are dealing with an anomymous user we set the user ID to 0. diff --git a/modules/node/node.module b/modules/node/node.module index a0e67e710..637fabb1b 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -460,7 +460,7 @@ function node_save($node) { $v[] = $value; } } - + // Update the node in the database: db_query("UPDATE {node} SET ". implode(', ', $q) ." WHERE nid = '$node->nid'", $v); @@ -1059,7 +1059,7 @@ function node_validate($node) { } // Validate the "authored by" field. - if (empty($node->name) || empty($node->uid)){ + if (empty($node->name)) { // The use of empty() is mandatory in the context of usernames // as the empty string denotes the anonymous user. In case we // are dealing with an anomymous user we set the user ID to 0. |