diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-14 14:07:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-14 14:07:57 +0000 |
commit | 015319d6b534190c062980d2428aad7cd60de447 (patch) | |
tree | 890a972a6b15f47c5ba7af21b69c6a8691b8eec3 /modules/node/node.module | |
parent | 1a4d5f4206d87718de4bbd5dbd9ea39f038787db (diff) | |
download | brdo-015319d6b534190c062980d2428aad7cd60de447.tar.gz brdo-015319d6b534190c062980d2428aad7cd60de447.tar.bz2 |
- Patch #100850 by webchick et al: log field in {node_revisions} table has no default value.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index b683012b2..79fb616e8 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -588,7 +588,7 @@ function node_save(&$node) { 'title' => "'%s'", 'body' => "'%s'", 'teaser' => "'%s'", 'timestamp' => '%d', 'uid' => '%d', 'format' => '%d'); - if (!empty($node->log)) { + if (!empty($node->log) || $node->is_new) { // 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). |