Also check Library Path

LibraryName was being checked twice.
This commit is contained in:
appelflap 2016-12-04 15:28:50 +09:00 committed by Adrien Crivelli
parent 6d44884e19
commit 3b4f54722f
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 1 additions and 1 deletions

View File

@ -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());