From 3b4f54722fe5cf9f3322b862bed6324909d5d1b4 Mon Sep 17 00:00:00 2001 From: appelflap Date: Sun, 4 Dec 2016 15:28:50 +0900 Subject: [PATCH] Also check Library Path LibraryName was being checked twice. --- src/PhpSpreadsheet/Writer/PDF.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Writer/PDF.php b/src/PhpSpreadsheet/Writer/PDF.php index 261bf5a3..6b9e6328 100644 --- a/src/PhpSpreadsheet/Writer/PDF.php +++ b/src/PhpSpreadsheet/Writer/PDF.php @@ -48,7 +48,7 @@ class PDF implements IWriter } $pdfLibraryPath = \PhpOffice\PhpSpreadsheet\Settings::getPdfRendererPath(); - if (is_null($pdfLibraryName)) { + if (is_null($pdfLibraryPath)) { throw new Exception('PDF Rendering library path has not been defined.'); } $includePath = str_replace('\\', '/', get_include_path());