From 3be71ac514b79c34679336f0ed2c77906409f10d Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 6 Sep 2005 18:55:41 +0000 Subject: [PATCH] - Patch #30308 by gordon: fixed broken SQL query. --- modules/book.module | 2 +- modules/book/book.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/book.module b/modules/book.module index 781e3ac0810..346bf66bd1e 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 781e3ac0810..346bf66bd1e 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);