diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-07-05 23:13:15 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-10-27 14:25:19 +0200 |
commit | 9a1f706ae4619a173ca7d0a96809957b10754493 (patch) | |
tree | d0275940f39cd350e301e335e5a4611d4306ce68 /apps/user_ldap | |
parent | 5c05a9327ce77a488d0c08eb571c23f68a62a0c2 (diff) | |
download | nextcloud-server-9a1f706ae4619a173ca7d0a96809957b10754493.tar.gz nextcloud-server-9a1f706ae4619a173ca7d0a96809957b10754493.zip |
fix creating an empty configuration
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r-- | apps/user_ldap/lib/Configuration.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/Configuration.php b/apps/user_ldap/lib/Configuration.php index c0963037aaf..f455adfefb8 100644 --- a/apps/user_ldap/lib/Configuration.php +++ b/apps/user_ldap/lib/Configuration.php @@ -35,11 +35,13 @@ namespace OCA\User_LDAP; * @property int ldapPagingSize holds an integer */ class Configuration { - protected $configPrefix = null; protected $configRead = false; - /** @var string[] */ - protected $unsavedChanges = []; + /** + * @var string[] pre-filled with one reference key so that at least one entry is written on save request and + * the config ID is registered + */ + protected $unsavedChanges = ['ldapConfigurationActive' => 'ldapConfigurationActive']; //settings protected $config = array( |