fix command line when using .zip

This commit is contained in:
Isaac Connor 2018-09-25 16:09:50 -04:00
parent 53f4276cb7
commit 700b3c33a0
1 changed files with 1 additions and 1 deletions

View File

@ -947,7 +947,7 @@ function exportEvents(
} elseif ( $exportFormat == 'zip' ) {
$archive = ZM_DIR_EXPORTS.'/'.$export_root.($connkey?'_'.$connkey:'').'.zip';
$command = 'zip ';
$command = ($exportStructure == 'flat' ? ' -j ' : ' -r ' ).escapeshellarg($archive);
$command .= ($exportStructure == 'flat' ? ' -j ' : ' -r ' ).escapeshellarg($archive);
$command .= $exportCompressed ? ' -9' : ' -0';
} else {
Error("No exportFormat specified.");