Commit 2b9d04d5 authored by drumm's avatar drumm

-bug #51522 by m3avrck, node teasers are empty

parent c9c46e2f
......@@ -156,7 +156,7 @@ function node_teaser($body, $format = NULL) {
$delimiter = strpos($body, '<!--break-->');
// If the size is zero, and there is no delimiter, the entire body is the teaser.
if ($size == 0 && $delimiter === false) {
if ($size == 0 && $delimiter === FALSE) {
return $body;
}
......@@ -165,13 +165,13 @@ function node_teaser($body, $format = NULL) {
// parse errors.
if (isset($format)) {
$filters = filter_list_format($format);
if (isset($filters['filter/1']) && strpos($body, '<?') !== false) {
if (isset($filters['filter/1']) && strpos($body, '<?') !== FALSE) {
return $body;
}
}
// If a valid delimiter has been specified, use it to chop of the teaser.
if ($delimiter >= 0) {
if ($delimiter !== FALSE) {
return substr($body, 0, $delimiter);
}
......
......@@ -156,7 +156,7 @@ function node_teaser($body, $format = NULL) {
$delimiter = strpos($body, '<!--break-->');
// If the size is zero, and there is no delimiter, the entire body is the teaser.
if ($size == 0 && $delimiter === false) {
if ($size == 0 && $delimiter === FALSE) {
return $body;
}
......@@ -165,13 +165,13 @@ function node_teaser($body, $format = NULL) {
// parse errors.
if (isset($format)) {
$filters = filter_list_format($format);
if (isset($filters['filter/1']) && strpos($body, '<?') !== false) {
if (isset($filters['filter/1']) && strpos($body, '<?') !== FALSE) {
return $body;
}
}
// If a valid delimiter has been specified, use it to chop of the teaser.
if ($delimiter >= 0) {
if ($delimiter !== FALSE) {
return substr($body, 0, $delimiter);
}
......
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