Commit 646cd1a7 authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

#55922, forgotten global $user, patch by singularo

parent 776a2217
......@@ -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 {
......
......@@ -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 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment