mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
use /usr/bin/tnef if available, before search tnef or ytnef via which in the path, to cope with system having it NOT in the path, but at its standard location
This commit is contained in:
parent
6d2179889c
commit
68e369cdd7
@ -678,7 +678,12 @@ function tnef_check($name,$args)
|
||||
$available = false;
|
||||
$tnef = array();
|
||||
|
||||
if (exec("which tnef", $tnef))
|
||||
if (file_exists('/usr/bin/tnef'))
|
||||
{
|
||||
$available = true;
|
||||
$tnef[] = '/usr/bin/tnef';
|
||||
}
|
||||
elseif (exec("which tnef", $tnef))
|
||||
{
|
||||
$available = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user