summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-06-29 22:40:50 +0200
committerGeorg Ehrke <developer@georgehrke.com>2014-06-29 22:40:50 +0200
commitc30bea45e99d4a3b11c4729356d55092e2ec56eb (patch)
treea9f6e49876c57c15d2bf5a0f9b0d16e8b6a87301 /lib/private/appframework
parent67d029a21e307270a2cd1ffcc32ea83e70058b93 (diff)
downloadnextcloud-server-c30bea45e99d4a3b11c4729356d55092e2ec56eb.tar.gz
nextcloud-server-c30bea45e99d4a3b11c4729356d55092e2ec56eb.zip
don't typecast null values inside dispatcher.php
Diffstat (limited to 'lib/private/appframework')
-rw-r--r--lib/private/appframework/http/dispatcher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/appframework/http/dispatcher.php b/lib/private/appframework/http/dispatcher.php
index fa8d3c47a8b..7f2717951a5 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);
}