Fix implode paramater order and few other minor edits.

This commit is contained in:
FusionPBX 2022-05-13 11:44:41 -06:00 committed by GitHub
parent 22db796b11
commit 58fc71fce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 20 deletions

View File

@ -52,7 +52,7 @@ if (!function_exists('exec_in_dir')) {
if ($cwd) if ($cwd)
chdir($cwd); chdir($cwd);
$ok = ($ret == 0); $ok = ($ret == 0);
return join($output, "\n"); return implode("\n", $output);
} }
} }
@ -88,7 +88,7 @@ if (!function_exists('path_join')) {
} }
$paths = array_filter($paths); $paths = array_filter($paths);
return $prefix . join('/', $paths); return $prefix . implode('/', $paths);
} }
} }
@ -177,10 +177,10 @@ if (!function_exists('tiff2pdf')) {
$page_width = sprintf('%.4f', $page_width); $page_width = sprintf('%.4f', $page_width);
$page_height = sprintf('%.4f', $page_height); $page_height = sprintf('%.4f', $page_height);
$cmd = join(array('tiff2pdf', $cmd = implode(' ', array('tiff2pdf',
'-o', correct_path($pdf_file_name), '-o', correct_path($pdf_file_name),
correct_path($tiff_file_name), correct_path($tiff_file_name),
), ' '); ));
$resp = exec_in_dir($dir_fax, $cmd, $ok); $resp = exec_in_dir($dir_fax, $cmd, $ok);