Handle no files selected without throwing warnings

This commit is contained in:
Nathan Gray 2013-11-07 23:20:07 +00:00
parent f4cd622af6
commit 969155e150

View File

@ -174,6 +174,7 @@ class etemplate_widget_file extends etemplate_widget
foreach($value as $tmp => $file)
{
if(!$file) continue;
if (is_dir($GLOBALS['egw_info']['server']['temp_dir']) && is_writable($GLOBALS['egw_info']['server']['temp_dir']))
{
$path = $GLOBALS['egw_info']['server']['temp_dir'].'/'.$tmp;