Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Excel2007 Without Styles throws warning #1134

@billynoah

Description

@billynoah

Similar to this: #558

Warning: Invalid argument supplied for foreach() in Excel2007.php line 555

Line in question is:

foreach ($xmlStyles->cellStyleXfs->xf as $xf) {

Some debugging output:

var_dump($xmlStyles->cellStyleXfs->xf);
NULL

var_dump($xmlStyles->cellStyleXfs);
object(SimpleXMLElement)#656 (0) {}

I opened the xlsx file in question, resaved it and the error is gone. Assuming this error is related to some minor issue in the file. Would still be good to resolve - perhaps just a simple check against the property in question would suffice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions