#6732: fixing bug 'once anonymous always anoymous' (nodes).
parent
6a380525d4
commit
fc99c57d87
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue