Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3be71ac5
Commit
3be71ac5
authored
Sep 06, 2005
by
Dries Buytaert
Browse files
- Patch
#30308
by gordon: fixed broken SQL query.
parent
3ace768e
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/book.module
View file @
3be71ac5
...
...
@@ -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
);
...
...
modules/book/book.module
View file @
3be71ac5
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment