- Patch #30308 by gordon: fixed broken SQL query.
parent
3ace768e50
commit
3be71ac514
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue