forked from extern/egroupware
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