Skip to content
Snippets Groups Projects

ISTWCMS-5251 Fix array offset on null type due to upgrade to Drupal 7.84

+ 2
1
@@ -128,6 +128,7 @@ function uw_ct_blog_block_view($delta = '') {
$items[$count] .= '<span class="home-listing-block-date' . (($wrapper->sticky->value()) ? ' sticky' : '') . '">' . uw_month_name_short(date('n', $datestamp)) . '&nbsp;' . date('j, Y', $datestamp) . '</span>';
$items[$count] .= '<span class="home-listing-block-link">' . l($wrapper->label(), 'node/' . $wrapper->getIdentifier()) . '</span>';
$listing_image = NULL;
if ($theme_key == 'uw_fdsu_theme_resp') {
if (!empty($wrapper->field_event_image->value()['uri'])) {
$listing_image = $wrapper->field_event_image->value()['uri'];
@@ -146,7 +147,7 @@ function uw_ct_blog_block_view($delta = '') {
$summary = check_markup(preg_replace(',<(/?)h\d,', '<$1p', $summary), 'uw_tf_basic');
$summary = preg_replace("/<img[^>]+\>/i", "", $summary);
$summary = _filter_htmlcorrector($summary);
if (isset($listing_image)) {
if ($listing_image) {
$themed_image = '<img alt="' . $node->field_event_image[LANGUAGE_NONE][0]['alt'] . '" src="' . file_create_url($listing_image) . '" typeof="foaf:Image">';
$summary = $themed_image . $summary;
}
Loading