commit 9abe67861ea5658cfd29ac3174e7a04bfe65ec52 Author: Joel Pittet Date: Fri Mar 22 00:17:12 2013 -0700 fix some test diff --git a/core/includes/theme.inc b/core/includes/theme.inc index 4f1fcc9..ad4ed5f 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -2269,7 +2269,6 @@ function template_preprocess_table(&$variables) { $class = 'even'; foreach ($variables['rows'] as $row_key => $row) { - $row_attributes = array(); $cells = array(); @@ -2341,6 +2340,11 @@ function template_preprocess_table(&$variables) { // Conversion to Attribute() happens last. $cell['attributes'] = new Attribute($cell['attributes']); + // Make sure that 0's get printed as '0'. + if (isset($cell['data']) && is_int($cell['data'])) { + $cell['data'] = (string) $cell['data']; + } + // Add the cell to the row. $variables['rows'][$row_key]['cells'][$i] = $cell; $i++;