fix getting sections

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2017-05-31 12:55:49 +02:00 committed by Arthur Schiwon
parent e8f5c21db9
commit 6e314ddabe
No known key found for this signature in database
GPG Key ID: 7424F1874854DF23
1 changed files with 2 additions and 2 deletions

View File

@ -104,10 +104,10 @@ class Mapper {
* @return array[] [['class' => string, 'priority' => int], ...] * @return array[] [['class' => string, 'priority' => int], ...]
*/ */
public function getSectionsFromDB($type) { public function getSectionsFromDB($type) {
if($type === 'personal') { if($type === 'admin') {
$sectionsTable = self::TABLE_ADMIN_SECTIONS; $sectionsTable = self::TABLE_ADMIN_SECTIONS;
$settingsTable = self::TABLE_ADMIN_SETTINGS; $settingsTable = self::TABLE_ADMIN_SETTINGS;
} else if($type === 'admin') { } else if($type === 'personal') {
$sectionsTable = self::TABLE_PERSONAL_SECTIONS; $sectionsTable = self::TABLE_PERSONAL_SECTIONS;
$settingsTable = self::TABLE_PERSONAL_SETTINGS; $settingsTable = self::TABLE_PERSONAL_SETTINGS;
} else { } else {