fixed PHP Warning, if log-dir is not yet created

This commit is contained in:
Ralf Becker 2012-02-17 08:13:50 +00:00
parent ddd13e8620
commit f0fef47688

View File

@ -97,7 +97,7 @@ class groupdav_hooks
if ($GLOBALS['type'] === 'user')
{
$logs = array();
if (($files = scandir($log_dir=$GLOBALS['egw_info']['server']['files_dir'].'/groupdav')))
if (file_exists($log_dir=$GLOBALS['egw_info']['server']['files_dir'].'/groupdav') && ($files = scandir($log_dir)))
{
$account_lid_len = strlen($GLOBALS['egw_info']['user']['account_lid']);
foreach($files as $log)