Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This patch no longer makes theme_table go bonkers on an empty array().
Robin
Comment | File | Size | Author |
---|---|---|---|
count.not.is_array.patch | 1.33 KB | Robin Monks | |
Comments
Comment #1
killes@www.drop.org CreditAttribution: killes@www.drop.org commentedThe 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
Comment #2
Dries CreditAttribution: Dries commentedCommitted to HEAD and DRUPAL-4-6. Thanks.
Comment #3
(not verified) CreditAttribution: commented