Typ in whichOpenOffice test

This commit is contained in:
Olivier Paroz 2014-09-02 22:11:49 +02:00 committed by Vincent Petry
parent a8861c70c8
commit bbc2d7cf4f
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ if (extension_loaded('imagick')) {
if (!\OC_Util::runningOnWindows()) {
$whichLibreOffice = ($isShellExecEnabled ? shell_exec('command -v libreoffice') : '');
$isLibreOfficeAvailable = !empty($whichLibreOffice);
$whichOpenOffice = ($isShellExecEnabled ? shell_exec('command -v libreoffice') : '');
$whichOpenOffice = ($isShellExecEnabled ? shell_exec('command -v openoffice') : '');
$isOpenOfficeAvailable = !empty($whichOpenOffice);
//let's see if there is libreoffice or openoffice on this machine
if($isShellExecEnabled && ($isLibreOfficeAvailable || $isOpenOfficeAvailable || is_string(\OC_Config::getValue('preview_libreoffice_path', null)))) {