diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php index fa8d3c47a8..7f2717951a 100644 --- a/lib/private/appframework/http/dispatcher.php +++ b/lib/private/appframework/http/dispatcher.php @@ -145,7 +145,7 @@ class Dispatcher { ) { $value = false; - } elseif(in_array($type, $types)) { + } elseif($value !== null && in_array($type, $types)) { settype($value, $type); }