fix creating an empty configuration

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2017-07-05 23:13:15 +02:00 committed by Morris Jobke
parent 5c05a9327c
commit 9a1f706ae4
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 5 additions and 3 deletions

View File

@ -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(