Fixed export Bug with PHP5.4

This commit is contained in:
Andreas Österreicher
2017-12-11 17:43:25 +01:00
parent 9bb368302f
commit dbf643cb8d
+7 -1
View File
@@ -48,7 +48,13 @@ class dokument_export
exec('unoconv --version',$ret_arr);
if(isset($ret_arr[0]))
$this->unoconv_version = explode(' ',$ret_arr[0])[1];
{
$hlp = explode(' ',$ret_arr[0]);
if(isset($hlp[1]))
$this->unoconv_version = $hlp[1];
else
die('Could not get Unoconv Version');
}
else
die('Unoconv not found');