fix getting sections
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
e8f5c21db9
commit
6e314ddabe
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue