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:
Ralf Becker 2011-02-22 13:09:09 +00:00
parent 6d2179889c
commit 68e369cdd7

View File

@ -678,7 +678,12 @@ function tnef_check($name,$args)
$available = false; $available = false;
$tnef = array(); $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; $available = true;
} }