mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
NavigationConfigForm: Make sure to return the correct configuration
This commit is contained in:
parent
6affad6895
commit
aa3bff532e
@ -129,7 +129,7 @@ class NavigationConfigForm extends ConfigForm
|
|||||||
*/
|
*/
|
||||||
public function getUserConfig($type = null)
|
public function getUserConfig($type = null)
|
||||||
{
|
{
|
||||||
if ($this->userConfig === null) {
|
if ($this->userConfig === null || $type !== null) {
|
||||||
if ($type === null) {
|
if ($type === null) {
|
||||||
throw new ProgrammingError('You need to pass a type if no user configuration is set');
|
throw new ProgrammingError('You need to pass a type if no user configuration is set');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user