Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
b88d9b9e
Commit
b88d9b9e
authored
Apr 20, 2007
by
Dries
Browse files
- Patch
#100850
by dww: fixed SQL error when log is empty.
parent
0337be78
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/node/node.module
View file @
b88d9b9e
...
...
@@ -649,7 +649,7 @@ function node_save(&$node) {
'title'
=>
"'%s'"
,
'body'
=>
"'%s'"
,
'teaser'
=>
"'%s'"
,
'timestamp'
=>
'%d'
,
'uid'
=>
'%d'
,
'format'
=>
'%d'
);
if
(
!
empty
(
$node
->
log
)
||
$node
->
is_new
)
{
if
(
!
empty
(
$node
->
log
)
||
$node
->
is_new
||
$node
->
revision
)
{
// Only store the log message if there's something to store; this prevents
// existing log messages from being unintentionally overwritten by a blank
// message. A new revision will have an empty log message (or $node->log).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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