diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-28 03:20:08 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-28 03:20:08 +0000 |
commit | fc71e763fa2e3f50ec446f80aa21dcd0e9132f75 (patch) | |
tree | 36d578851e4b6ee4d079ca7075f340fd44640eec /modules/node/node.module | |
parent | 65718466fc8f1ace930dd0e56b19b34478657e9e (diff) | |
download | brdo-fc71e763fa2e3f50ec446f80aa21dcd0e9132f75.tar.gz brdo-fc71e763fa2e3f50ec446f80aa21dcd0e9132f75.tar.bz2 |
Patch by myself to properly initialize a variable.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 3b9e302b8..aa9c5c91a 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -690,9 +690,7 @@ function node_prepare($node, $teaser = FALSE) { // First we'll overwrite the existing node teaser and body with // the filtered copies! Then, we'll stick those into the content // array and set the read more flag if appropriate. - if (strlen($node->teaser) < strlen($node->body)) { - $node->readmore = TRUE; - } + $node->readmore = (strlen($node->teaser) < strlen($node->body)); if ($teaser == FALSE) { $node->body = check_markup($node->body, $node->format, FALSE); |