summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2015-11-25 13:43:46 (GMT)
committerNathaniel Catchpole2015-11-25 13:43:46 (GMT)
commit28437fd54af1f73803be735410e7307217a86f17 (patch)
tree04fbad212b79bc0f466ce3492aac2ab7fb81634d
parent7b3d4442ba5abc0ab9f172ee63e6c7dc1b543617 (diff)
Issue #2607676 by andypost: Remove useless assigning in template_preprocess_views_view_unformatted()
-rw-r--r--core/modules/views/views.theme.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc
index 6a0a141..d84277f 100644
--- a/core/modules/views/views.theme.inc
+++ b/core/modules/views/views.theme.inc
@@ -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);
}