Fix "Undefined offset" if border style is "none" (#1423)
This commit is contained in:
parent
7b1957f996
commit
0945e87b6d
|
@ -933,7 +933,12 @@ class Html extends BaseReader
|
||||||
*/
|
*/
|
||||||
private function setBorderStyle(Style $cellStyle, $styleValue, $type): void
|
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([
|
$cellStyle->applyFromArray([
|
||||||
'borders' => [
|
'borders' => [
|
||||||
|
|
Loading…
Reference in New Issue