mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-13 19:46:31 +00:00
Fix "Undefined offset" if border style is "none" (#1423)
This commit is contained in:
@@ -933,7 +933,12 @@ class Html extends BaseReader
|
||||
*/
|
||||
private function setBorderStyle(Style $cellStyle, $styleValue, $type): void
|
||||
{
|
||||
[, $borderStyle, $color] = explode(' ', $styleValue);
|
||||
if (trim($styleValue) === Border::BORDER_NONE) {
|
||||
$borderStyle = Border::BORDER_NONE;
|
||||
$color = null;
|
||||
} else {
|
||||
[, $borderStyle, $color] = explode(' ', $styleValue);
|
||||
}
|
||||
|
||||
$cellStyle->applyFromArray([
|
||||
'borders' => [
|
||||
|
||||
Reference in New Issue
Block a user