Commit d3ab54e4 authored by dawehner's avatar dawehner Committed by tim.plunkett
Browse files

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

parent 96826f6c
...@@ -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';
} }
......
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