bugfix for files got lost, while converting to infolog immediately after send, if attached via vfs

This commit is contained in:
Klaus Leithoff 2009-06-22 14:46:10 +00:00
parent 50cac4e9b6
commit 587cf2f1f5

View File

@ -853,7 +853,12 @@ class infolog_bo
{
foreach ($_attachments as $attachment)
{
if(is_readable($attachment['tmp_name']))
$is_vfs = false;
if (parse_url($attachment['tmp_name'],PHP_URL_SCHEME) == 'vfs' && egw_vfs::is_readable($attachment['tmp_name']))
{
$is_vfs = true;
}
if(is_readable($attachment['tmp_name']) || $is_vfs)
{
egw_link::link('infolog',$info['link_to']['to_id'],'file',$attachment);
}