mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed PHP Warning, if log-dir is not yet created
This commit is contained in:
parent
ddd13e8620
commit
f0fef47688
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user