PHP_XLSXWriter_plus icon indicating copy to clipboard operation
PHP_XLSXWriter_plus copied to clipboard

missing styles

Open smiffy6969 opened this issue 10 years ago • 0 comments

Need to ensure missing styles are ignored...

lines 275,6,7

if ($style['font']['bold']) $this->fontStyles .= '<b/>';
if ($style['font']['italic']) $this->fontStyles .= '<i/>';
if ($style['font']['underline']) $this->fontStyles .= '<u/>';

should be

if (isset($style['font']['bold'])) $this->fontStyles .= '<b/>';
if (isset($style['font']['italic'])) $this->fontStyles .= '<i/>';
if (isset($style['font']['underline'])) $this->fontStyles .= '<u/>';

smiffy6969 avatar Nov 12 '14 11:11 smiffy6969