Commit c928f9c1 authored by Steven Wittens's avatar Steven Wittens
Browse files

- #18836: Cleanup teaser generation code, and refine handling of PHP code teasers.

parent 5257b684
......@@ -172,7 +172,7 @@ 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;
}
}
......
......@@ -172,7 +172,7 @@ 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;
}
}
......
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