This patch no longer makes theme_table go bonkers on an empty array().

Robin

CommentFileSizeAuthor
count.not.is_array.patch1.33 KBRobin Monks
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

killes@www.drop.org’s picture

The problem is that sometimes one wants a table without headers. People give NULL or '' as a value to $header to achieve this. This causes problems in tablesort_cell because $header is assumed to be an array. Occurs only with php 5.

See here:
http://drupal.org/node/11187

Dries’s picture

Committed to HEAD and DRUPAL-4-6. Thanks.

Anonymous’s picture