[drupal-devel] [bug] Make theme_table() PHP5 ready

killes drupal-devel at drupal.org
Thu Jun 16 15:06:32 UTC 2005


Issue status update for http://drupal.org/node/25143

 Project:      Drupal
 Version:      cvs
 Component:    theme system
 Category:     bug reports
 Priority:     normal
 Assigned to:  Robin Monks
 Reported by:  Robin Monks
 Updated by:   killes at www.drop.org
 Status:       patch

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




killes at www.drop.org



Previous comments:
------------------------------------------------------------------------

June 16, 2005 - 16:56 : Robin Monks

Attachment: http://drupal.org/files/issues/count.not.is_array.patch (1.33 KB)

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


Robin







More information about the drupal-devel mailing list