Fix fax_queue to Email PDF Instead of TIF (#6461)

* Fix fax_queue to Email PDF Instead of TIF

Variables `$fax_file_tif` and `$fax_file_pdf` are missing a period before the extension so file_exists is always evaluating to false. Thus, TIF was always sent. Adds the period back into the path so the check works correctly.

NOTE: `$fax_file_tif` is completely unused and can be removed from this code for cleanup.

* Use single quotes.
This commit is contained in:
emak 2022-08-22 12:10:31 -04:00 committed by GitHub
parent 4f2d0316c5
commit e52f6626f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -490,9 +490,10 @@
$fax_file_extension = $path_info['extension'];
//set the fax file pdf and tif files
$fax_file_tif = path_join($fax_file_dirname, $fax_file_filename . $fax_file_extension);
$fax_file_pdf = path_join($fax_file_dirname, $fax_file_filename . 'pdf');
if (file_exists(path_join($fax_file_dirname, $fax_file_filename . 'pdf'))) {
$fax_file_tif = path_join($fax_file_dirname, $fax_file_filename . '.' . $fax_file_extension);
$fax_file_pdf = path_join($fax_file_dirname, $fax_file_filename . '.pdf');
if (file_exists($fax_file_pdf)) {
$fax_file_name = $fax_file_filename . '.pdf';
}
else {