Skip to content
Snippets Groups Projects
Commit d3ab54e4 authored by Daniel Wehner's avatar Daniel Wehner Committed by Tim Plunkett
Browse files

Issue #1597002 by dawehner: Fix a undefined index in template_preprocess_views_view_table().

parent 96826f6c
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -620,6 +620,7 @@ function template_preprocess_views_view_table(&$vars) { ...@@ -620,6 +620,7 @@ function template_preprocess_views_view_table(&$vars) {
$count = 0; $count = 0;
foreach ($vars['rows'] as $num => $row) { foreach ($vars['rows'] as $num => $row) {
$vars['row_classes'][$num] = array();
if ($row_class_special) { if ($row_class_special) {
$vars['row_classes'][$num][] = ($count++ % 2 == 0) ? 'odd' : 'even'; $vars['row_classes'][$num][] = ($count++ % 2 == 0) ? 'odd' : 'even';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment