#55922, forgotten global $user, patch by singularo

4.7.x
Gerhard Killesreiter 2006-03-26 16:56:08 +00:00
parent 776a2217a6
commit 646cd1a716
2 changed files with 2 additions and 0 deletions

View File

@ -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 {

View File

@ -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 {