Commit 28437fd5 authored by catch's avatar catch

Issue #2607676 by andypost: Remove useless assigning in...

Issue #2607676 by andypost: Remove useless assigning in template_preprocess_views_view_unformatted()
parent 7b3d4442
......@@ -740,8 +740,7 @@ function template_preprocess_views_view_unformatted(&$variables) {
foreach ($rows as $id => $row) {
$variables['rows'][$id] = array();
$variables['rows'][$id]['content'] = $row;
$variables['rows'][$id]['attributes'] = array();
$variables['rows'][$id]['attributes'] = new Attribute($variables['rows'][$id]['attributes']);
$variables['rows'][$id]['attributes'] = new Attribute();
if ($row_class = $view->style_plugin->getRowClass($id)) {
$variables['rows'][$id]['attributes']->addClass($row_class);
}
......
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