From: Arthur Schiwon Date: Thu, 31 Jan 2013 01:00:29 +0000 (+0100) Subject: LDAP: avoid attempts to save null as configvalue X-Git-Tag: v5.0.0alpha1~159^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a854454d67f39794b24cc00bfbaadf8a921b7a0;p=nextcloud-server.git LDAP: avoid attempts to save null as configvalue --- diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index c5af73857a0..8ddc106d0b9 100644 --- a/apps/user_ldap/lib/connection.php +++ b/apps/user_ldap/lib/connection.php @@ -341,10 +341,9 @@ ingle parameters case 'ldapUuidAttribute': case 'hasPagedResultSupport': continue 2; - default: - if(is_null($value)) { - $value = 0; - } + } + if(is_null($value)) { + $value = ''; } $this->setValue($trans[$key], $value);