Commit fc71e763 authored by drumm's avatar drumm
Browse files

Patch by myself to properly initialize a variable.

parent 65718466
......@@ -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);
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