Commit 662177c4 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #335621 by Dave Reid, jrguitar21, jhodgdon: fix PHP strict warning by...

Issue #335621 by Dave Reid, jrguitar21, jhodgdon: fix PHP strict warning by initializing object in template_preprocess_block_admin_display_form()
parent 0e9a8058
......@@ -385,6 +385,7 @@ function template_preprocess_block_admin_display_form(&$variables) {
$variables['form'][$i]['region']['#attributes']['class'] = 'block-region-select block-region-'. $region;
$variables['form'][$i]['weight']['#attributes']['class'] = 'block-weight block-weight-'. $region;
$variables['block_listing'][$region][$i] = new stdClass();
$variables['block_listing'][$region][$i]->row_class = isset($block['#attributes']['class']) ? $block['#attributes']['class'] : '';
$variables['block_listing'][$region][$i]->block_modified = isset($block['#attributes']['class']) && strpos($block['#attributes']['class'], 'block-modified') !== FALSE ? TRUE : FALSE;
$variables['block_listing'][$region][$i]->block_title = drupal_render($block['info']);
......
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