From 6c7d12131b77715a591a272190e11bbee0095677 Mon Sep 17 00:00:00 2001 From: Andreas Boehler Date: Mon, 29 Dec 2014 10:38:59 +0100 Subject: [PATCH] Fix default config values for domain mappings (thanks to Dominik Grothaus) --- user_sql.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user_sql.php b/user_sql.php index 53cbb35..ba42bce 100644 --- a/user_sql.php +++ b/user_sql.php @@ -67,8 +67,8 @@ class OC_USER_SQL extends OC_User_Backend implements OC_User_Interface $this -> strip_domain = OCP\Config::getAppValue('user_sql', 'strip_domain', 0); $this -> crypt_type = OCP\Config::getAppValue('user_sql', 'crypt_type', 'md5crypt'); $this -> domain_settings = OCP\Config::getAppValue('user_sql', 'domain_settings', 'none'); - $this -> domain_array = explode(",", OCP\Config::getAppValue('user_sql', 'domain_array', array())); - $this -> map_array = explode(",", OCP\Config::getAppValue('user_sql', 'map_array', array())); + $this -> domain_array = explode(",", OCP\Config::getAppValue('user_sql', 'domain_array', '')); + $this -> map_array = explode(",", OCP\Config::getAppValue('user_sql', 'map_array', '')); $dsn = $this -> sql_type . ":host=" . $this -> sql_host . ";dbname=" . $this -> sql_database; try {