Use '0' instead of 0, to fix possible issue.

pull/160/head
Aleksander Machniak 11 years ago
parent 2957e77fbc
commit 7a3c0c96c4

@ -677,8 +677,8 @@ class html_table extends html
*/
public function __construct($attrib = array())
{
$default_attrib = self::$doctype == 'xhtml' ? array('summary' => '', 'border' => 0) : array();
$this->attrib = array_merge($attrib, $default_attrib);
$default_attrib = self::$doctype == 'xhtml' ? array('summary' => '', 'border' => '0') : array();
$this->attrib = array_merge($attrib, $default_attrib);
if (!empty($attrib['tagname']) && $attrib['tagname'] != 'table') {
$this->tagname = $attrib['tagname'];

Loading…
Cancel
Save