mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
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)
|
||||
{
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user