From 6e314ddabe0bd9f1d9bcfecf451c6a82f2de648b Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 31 May 2017 12:55:49 +0200 Subject: fix getting sections Signed-off-by: Robin Appelman --- lib/private/Settings/Mapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/private') 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 { -- cgit v1.2.3