Commit bad54847 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#180191 by chx: fix notice in teaser handling

parent e9f7072e
......@@ -742,7 +742,7 @@ function node_submit($node) {
if (isset($node->body)) {
$node->teaser = node_teaser($node->body, isset($node->format) ? $node->format : NULL);
// Chop off the teaser from the body if needed.
if (!$node->teaser_include && $node->teaser == substr($node->body, 0, strlen($node->teaser))) {
if (empty($node->teaser_include) && $node->teaser == substr($node->body, 0, strlen($node->teaser))) {
$node->body = substr($node->body, strlen($node->teaser));
}
}
......@@ -2620,4 +2620,4 @@ function _node_mass_update_batch_finished($success, $results, $operations) {
$message .= theme('item_list', $results);
drupal_set_message($message);
}
}
\ No newline at end of file
}
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