Commit 19e6644f authored by catch's avatar catch

Issue #1282956 by rickmanelius, pgrond | lyricnz: Fixed Node revision log of '0' is ignored.

parent 70619a11
......@@ -1073,7 +1073,7 @@ function node_save($node) {
$node->log = '';
}
}
elseif (empty($node->log)) {
elseif (!isset($node->log) || $node->log === '') {
// If we are updating an existing node without adding a new revision, we
// need to make sure $node->log is unset whenever it is empty. As long as
// $node->log is unset, drupal_write_record() will not attempt to update
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment