Fixed a bug in the output: there was always a ruler under the story-abstract, even if it was an abstract-only story.

3-00
Steven Wittens 2001-05-27 20:50:34 +00:00
parent b574833210
commit cb2850f5c9
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ function story_help() {
function story_view($node, $main = 0) {
global $theme;
$node->body = ($main ? $node->abstract : "$node->abstract<HR>$node->body");
$node->body = ((!$main) && ($node->body)) ? "$node->abstract<HR>$node->body" : $node->abstract;
$theme->node($node, $main);
}

View File

@ -31,7 +31,7 @@ function story_help() {
function story_view($node, $main = 0) {
global $theme;
$node->body = ($main ? $node->abstract : "$node->abstract<HR>$node->body");
$node->body = ((!$main) && ($node->body)) ? "$node->abstract<HR>$node->body" : $node->abstract;
$theme->node($node, $main);
}