summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-26 16:56:08 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-03-26 16:56:08 +0000
commit646cd1a7167b81f3ef913f5159bad497b20bafec (patch)
tree4c8b5bc2b6c0dc3512e5224c7512e8e2c89fdecf /modules
parent776a2217a6382dde669542ce222aea57dc025c32 (diff)
downloadbrdo-646cd1a7167b81f3ef913f5159bad497b20bafec.tar.gz
brdo-646cd1a7167b81f3ef913f5159bad497b20bafec.tar.bz2
#55922, forgotten global $user, patch by singularo
Diffstat (limited to 'modules')
-rw-r--r--modules/node.module1
-rw-r--r--modules/node/node.module1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/node.module b/modules/node.module
index f9821bf3a..ec8a58180 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -1706,6 +1706,7 @@ function node_form_array($node) {
foreach (array('status', 'moderate', 'promote', 'sticky', 'revision') as $key) {
$node->$key = in_array($key, $node_options);
}
+ global $user;
$node->uid = $user->uid;
}
else {
diff --git a/modules/node/node.module b/modules/node/node.module
index f9821bf3a..ec8a58180 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -1706,6 +1706,7 @@ function node_form_array($node) {
foreach (array('status', 'moderate', 'promote', 'sticky', 'revision') as $key) {
$node->$key = in_array($key, $node_options);
}
+ global $user;
$node->uid = $user->uid;
}
else {