diff --git a/lib/private/Settings/Mapper.php b/lib/private/Settings/Mapper.php index 999efb0d87..3219a812cd 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 {