summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2013-07-22 13:57:58 +0200
committerArthur Schiwon <blizzz@owncloud.com>2013-07-22 13:57:58 +0200
commit4b203280d20241d987b43a6225f445c7685fb728 (patch)
treec7fcbfd37f890a47be1a6f9c4d61f3b94771d612 /apps
parent88dc61c200cfe9907ea6699ccf24d95df1d09495 (diff)
downloadnextcloud-server-4b203280d20241d987b43a6225f445c7685fb728.tar.gz
nextcloud-server-4b203280d20241d987b43a6225f445c7685fb728.zip
LDAP: avoid PHP Warnings cause by passing empty values to implode
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/connection.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php
index c51a01118cd..2011ba3878d 100644
--- a/apps/user_ldap/lib/connection.php
+++ b/apps/user_ldap/lib/connection.php
@@ -416,7 +416,11 @@ class Connection {
continue;
} else if((strpos($classKey, 'ldapBase') !== false)
|| (strpos($classKey, 'ldapAttributes') !== false)) {
- $config[$dbKey] = implode("\n", $this->config[$classKey]);
+ if(!empty($this->config[$classKey])) {
+ $config[$dbKey] = implode("\n", $this->config[$classKey]);
+ } else {
+ $config[$dbKey] = '';
+ }
continue;
}
$config[$dbKey] = $this->config[$classKey];