]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: avoid attempts to save null as configvalue
authorArthur Schiwon <blizzz@owncloud.com>
Thu, 31 Jan 2013 01:00:29 +0000 (02:00 +0100)
committerArthur Schiwon <blizzz@owncloud.com>
Thu, 31 Jan 2013 01:00:29 +0000 (02:00 +0100)
apps/user_ldap/lib/connection.php

index c5af73857a02db4faca55a01bf614d22dc8a4566..8ddc106d0b95490cb9043560c8a61ac8fabd9854 100644 (file)
@@ -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);