forked from extern/egroupware
Handle no files selected without throwing warnings
This commit is contained in:
parent
f4cd622af6
commit
969155e150
@ -174,6 +174,7 @@ class etemplate_widget_file extends etemplate_widget
|
|||||||
|
|
||||||
foreach($value as $tmp => $file)
|
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']))
|
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;
|
$path = $GLOBALS['egw_info']['server']['temp_dir'].'/'.$tmp;
|
||||||
|
Loading…
Reference in New Issue
Block a user