NavigationConfigForm: Make sure to return the correct configuration

This commit is contained in:
Johannes Meyer 2015-10-01 10:57:00 +02:00
parent 6affad6895
commit aa3bff532e

View File

@ -129,7 +129,7 @@ class NavigationConfigForm extends ConfigForm
*/
public function getUserConfig($type = null)
{
if ($this->userConfig === null) {
if ($this->userConfig === null || $type !== null) {
if ($type === null) {
throw new ProgrammingError('You need to pass a type if no user configuration is set');
}