- Patch #93678 by chx: book module not updating the database properly.

5.x
Dries Buytaert 2006-11-21 19:27:06 +00:00
parent e8e97f2bbd
commit e89c6c1da7
1 changed files with 1 additions and 2 deletions

View File

@ -195,8 +195,7 @@ function book_submit(&$node) {
// Set default values for non-administrators.
if (!user_access('administer nodes')) {
$node->revision = 1;
$book->uid = $user->uid;
$book->name = $user->uid ? $user->name : '';
$node->uid = $user->uid;
}
}