From: Sam Reed Date: Sun, 14 Aug 2011 19:50:08 +0000 (+0000) Subject: Fix fail from r94473 X-Git-Tag: 1.31.0-rc.0~28270 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=e159eb114e44e526f75a07892300a2f7f57827c1;p=lhc%2Fweb%2Fwiklou.git Fix fail from r94473 Append to the string, don't replace it --- diff --git a/includes/Xml.php b/includes/Xml.php index f937003289..c2fa8191d9 100644 --- a/includes/Xml.php +++ b/includes/Xml.php @@ -794,7 +794,7 @@ class Xml { $s = Xml::openElement( 'table', $attribs ); if ( is_array( $headers ) ) { - $s = Xml::openElement( 'thead', $attribs ); + $s .= Xml::openElement( 'thead', $attribs ); foreach( $headers as $id => $header ) { $attribs = array(); @@ -805,7 +805,7 @@ class Xml { $s .= Xml::element( 'th', $attribs, $header ); } - $s = Xml::closeElement( 'thead' ); + $s .= Xml::closeElement( 'thead' ); } foreach( $rows as $id => $row ) {