diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-08-18 20:46:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-08-18 20:46:28 +0000 |
commit | db548f7579472877169cb4e6977a15418b3f6db7 (patch) | |
tree | e22980171221400ed69104a68b336bcc478e5c37 /modules | |
parent | 83a739bd898094af5837d2b29863d8e988929e1b (diff) | |
download | brdo-db548f7579472877169cb4e6977a15418b3f6db7.tar.gz brdo-db548f7579472877169cb4e6977a15418b3f6db7.tar.bz2 |
- Bugfix, spotted by Gerhard: editing a book page did not update the author.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/book.module | 2 | ||||
-rw-r--r-- | modules/book/book.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module index 89e7c1438..a962f7ee7 100644 --- a/modules/book.module +++ b/modules/book.module @@ -142,7 +142,7 @@ function book_load($node) { $book = db_fetch_object(db_query('SELECT parent, weight, log FROM {book} WHERE nid = %d', $node->nid)); - if (arg(1) == 'edit' && !user_access('administer nodes')) { + if (arg(2) == 'edit' && !user_access('administer nodes')) { // If a user is about to update a book page, we overload some // fields to reflect the changes. if ($user->uid) { diff --git a/modules/book/book.module b/modules/book/book.module index 89e7c1438..a962f7ee7 100644 --- a/modules/book/book.module +++ b/modules/book/book.module @@ -142,7 +142,7 @@ function book_load($node) { $book = db_fetch_object(db_query('SELECT parent, weight, log FROM {book} WHERE nid = %d', $node->nid)); - if (arg(1) == 'edit' && !user_access('administer nodes')) { + if (arg(2) == 'edit' && !user_access('administer nodes')) { // If a user is about to update a book page, we overload some // fields to reflect the changes. if ($user->uid) { |