Commit d5b4b6f8 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Don't try to render the body if it doesn't exist

parent 0f8983ed
...@@ -105,7 +105,9 @@ ...@@ -105,7 +105,9 @@
<?php <?php
print render($content['field_event_date']); print render($content['field_event_date']);
print render($content['title_field']); print render($content['title_field']);
$content['body'][0]['#markup'] = uw_ct_web_page_filter_summary($content['body']['#items'][0]); if (!empty($content['body']['#items'][0])) {
$content['body'][0]['#markup'] = uw_ct_web_page_filter_summary($content['body']['#items'][0]);
}
hide($content['title_field']); hide($content['title_field']);
hide($content['field_blog_date']); hide($content['field_blog_date']);
print render($content); print render($content);
......
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