diff --git a/Classes/PHPExcel/Settings.php b/Classes/PHPExcel/Settings.php index 839231ba..d9d197a5 100644 --- a/Classes/PHPExcel/Settings.php +++ b/Classes/PHPExcel/Settings.php @@ -381,7 +381,7 @@ class PHPExcel_Settings if (is_null(self::$_libXmlLoaderOptions)) { self::setLibXmlLoaderOptions(LIBXML_DTDLOAD | LIBXML_DTDATTR); } - @libxml_disable_entity_loader($options == (LIBXML_DTDLOAD | LIBXML_DTDATTR)); + @libxml_disable_entity_loader(self::$_libXmlLoaderOptions == (LIBXML_DTDLOAD | LIBXML_DTDATTR)); return self::$_libXmlLoaderOptions; } // function getLibXmlLoaderOptions }