summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-06 18:55:41 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-06 18:55:41 +0000
commit3be71ac514b79c34679336f0ed2c77906409f10d (patch)
tree76720446541556f864168f0469c0c0078b95d13e /modules
parent3ace768e5015bd7d43e8558118676b73ba8cbd51 (diff)
downloadbrdo-3be71ac514b79c34679336f0ed2c77906409f10d.tar.gz
brdo-3be71ac514b79c34679336f0ed2c77906409f10d.tar.bz2
- Patch #30308 by gordon: fixed broken SQL query.
Diffstat (limited to 'modules')
-rw-r--r--modules/book.module2
-rw-r--r--modules/book/book.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/book.module b/modules/book.module
index 781e3ac08..346bf66bd 100644
--- a/modules/book.module
+++ b/modules/book.module
@@ -202,7 +202,7 @@ function book_insert($node) {
*/
function book_update($node) {
if ($node->revision) {
- db_query("INSERT INTO {book} (nid, vid, parent, weight) VALUES (%d, %d, %d, %d, '%s')", $node->nid, $node->vid, $node->parent, $node->weight);
+ db_query("INSERT INTO {book} (nid, vid, parent, weight) VALUES (%d, %d, %d, %d)", $node->nid, $node->vid, $node->parent, $node->weight);
}
else {
db_query("UPDATE {book} SET parent = %d, weight = %d WHERE vid = %d", $node->parent, $node->weight, $node->vid);
diff --git a/modules/book/book.module b/modules/book/book.module
index 781e3ac08..346bf66bd 100644
--- a/modules/book/book.module
+++ b/modules/book/book.module
@@ -202,7 +202,7 @@ function book_insert($node) {
*/
function book_update($node) {
if ($node->revision) {
- db_query("INSERT INTO {book} (nid, vid, parent, weight) VALUES (%d, %d, %d, %d, '%s')", $node->nid, $node->vid, $node->parent, $node->weight);
+ db_query("INSERT INTO {book} (nid, vid, parent, weight) VALUES (%d, %d, %d, %d)", $node->nid, $node->vid, $node->parent, $node->weight);
}
else {
db_query("UPDATE {book} SET parent = %d, weight = %d WHERE vid = %d", $node->parent, $node->weight, $node->vid);