- Fixed getting specific input-value by request-method in InputHandler.
- Added .idea files
This commit is contained in:
Simon Sessingø
2018-03-29 23:47:27 +02:00
parent 17471a53cd
commit 80a42030ea
12 changed files with 1221 additions and 3 deletions
+2 -2
View File
@@ -222,11 +222,11 @@ class InputHandler
$element = $this->findGet($index);
}
if (($element === null && \count($methods) === 0) || (\count($methods) === 0 && \in_array('post', $methods, true) === true)) {
if (($element === null && \count($methods) === 0) || (\count($methods) !== 0 && \in_array('post', $methods, true) === true)) {
$element = $this->findPost($index);
}
if (($element === null && \count($methods) === 0) || (\count($methods) === 0 && \in_array('file', $methods, true) === true)) {
if (($element === null && \count($methods) === 0) || (\count($methods) !== 0 && \in_array('file', $methods, true) === true)) {
$element = $this->findFile($index);
}