#55922, forgotten global $user, patch by singularo
parent
776a2217a6
commit
646cd1a716
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue