Index: trunk/phase3/includes/Xml.php |
— | — | @@ -696,12 +696,14 @@ |
697 | 697 | foreach( $headers as $id => $header ) { |
698 | 698 | $attribs = array(); |
699 | 699 | if ( is_string( $id ) ) $attribs['id'] = $id; |
| 700 | + if ( is_array( $id ) ) $attribs = $id; |
700 | 701 | $s .= Xml::element( 'th', $attribs, $header ); |
701 | 702 | } |
702 | 703 | } |
703 | 704 | foreach( $rows as $id => $row ) { |
704 | 705 | $attribs = array(); |
705 | 706 | if ( is_string( $id ) ) $attribs['id'] = $id; |
| 707 | + if ( is_array( $id ) ) $attribs = $id; |
706 | 708 | $s .= Xml::buildTableRow( $attribs, $row ); |
707 | 709 | } |
708 | 710 | $s .= Xml::closeElement( 'table' ); |
— | — | @@ -718,6 +720,7 @@ |
719 | 721 | foreach( $cells as $id => $cell ) { |
720 | 722 | $attribs = array(); |
721 | 723 | if ( is_string( $id ) ) $attribs['id'] = $id; |
| 724 | + if ( is_array( $id ) ) $attribs = $id; |
722 | 725 | $s .= Xml::element( 'td', $attribs, $cell ); |
723 | 726 | } |
724 | 727 | $s .= Xml::closeElement( 'tr' ); |