diff options
author | Robin Appelman <robin@icewind.nl> | 2017-05-31 12:55:49 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-06-23 12:37:42 +0200 |
commit | 6e314ddabe0bd9f1d9bcfecf451c6a82f2de648b (patch) | |
tree | 4d6db98fa1f25c745fe9825ffe6f667b18e91fde /lib | |
parent | e8f5c21db9bc16d7263cbfec74480d5835278b85 (diff) | |
download | nextcloud-server-6e314ddabe0bd9f1d9bcfecf451c6a82f2de648b.tar.gz nextcloud-server-6e314ddabe0bd9f1d9bcfecf451c6a82f2de648b.zip |
fix getting sections
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Settings/Mapper.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Settings/Mapper.php b/lib/private/Settings/Mapper.php index 999efb0d872..3219a812cd5 100644 --- a/lib/private/Settings/Mapper.php +++ b/lib/private/Settings/Mapper.php @@ -104,10 +104,10 @@ class Mapper { * @return array[] [['class' => string, 'priority' => int], ...] */ public function getSectionsFromDB($type) { - if($type === 'personal') { + if($type === 'admin') { $sectionsTable = self::TABLE_ADMIN_SECTIONS; $settingsTable = self::TABLE_ADMIN_SETTINGS; - } else if($type === 'admin') { + } else if($type === 'personal') { $sectionsTable = self::TABLE_PERSONAL_SECTIONS; $settingsTable = self::TABLE_PERSONAL_SETTINGS; } else { |