diff options
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/LDAP.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/LDAP.php b/apps/user_ldap/lib/LDAP.php index e33facd0889..18a9476128d 100644 --- a/apps/user_ldap/lib/LDAP.php +++ b/apps/user_ldap/lib/LDAP.php @@ -308,7 +308,7 @@ class LDAP implements ILDAPWrapper { $this->curFunc = $functionName; $this->curArgs = $args; - if ($this->logFile !== '' && is_writable($this->logFile)) { + if ($this->logFile !== '' && is_writable(dirname($this->logFile)) && (!file_exists($this->logFile) || is_writable($this->logFile))) { $args = array_reduce($this->curArgs, static function (array $carry, $item): array { $carry[] = !is_resource($item) ? $item : '(resource)'; return $carry; |