From 9a38a531daa273b7381451482f12d9f614f3976d Mon Sep 17 00:00:00 2001 From: Kevin Auvinet Date: Tue, 15 Apr 2014 15:07:06 +0200 Subject: [PATCH] Bug "Undefined variable: options" There is a bug for the var `$option`: Notice: Undefined variable: options in [...]/vendor/phpoffice/phpexcel/Classes/PHPExcel/Settings.php on line 384 This bug is fixed with `self::$_libXmlLoaderOptions == (LIBXML_DTDLOAD | LIBXML_DTDATTR)` instead of `$options == (LIBXML_DTDLOAD | LIBXML_DTDATTR)` --- Classes/PHPExcel/Settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }