diff --git a/authentic.pl b/authentic.pl index ec45674f1..104dc206f 100644 --- a/authentic.pl +++ b/authentic.pl @@ -1126,16 +1126,17 @@ sub theme_ui_table_row } # Only allow data-* attributes as other, # like width, can have negative effects - $tds->[0] = undef if ($tds->[0] !~ /^data-/); - $tds->[1] = undef if ($tds->[1] !~ /^data-/); + my ($tds1, $tds2); + $tds1 = $tds->[0] if (ref($tds) && $tds->[0] =~ /^data-/); + $tds2 = $tds->[1] if (ref($tds) && $tds->[1] =~ /^data-/); my $trtags_attrs = ref($trs) eq 'ARRAY' && $trs->[0] ? " $trs->[0]" : ""; $trtags_attrs .= " data-row-type='ui-table' data-cell-colspan='$cols'"; my $trtags_class = ref($trs) eq 'ARRAY' && $trs->[1] ? " class='$trs->[1]'" : ""; $rv .= "