Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-06-30 00:40:50 +0400
committerGeorg Ehrke <developer@georgehrke.com>2014-06-30 00:40:50 +0400
commitc30bea45e99d4a3b11c4729356d55092e2ec56eb (patch)
treea9f6e49876c57c15d2bf5a0f9b0d16e8b6a87301 /lib/private/appframework
parent67d029a21e307270a2cd1ffcc32ea83e70058b93 (diff)
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);
}