diff options
| author | 2014-08-12 21:15:12 +0200 | |
|---|---|---|
| committer | 2014-08-12 21:15:12 +0200 | |
| commit | ede94098be5d330d4bf120eb8064c5c87eed7ef0 (patch) | |
| tree | e06ac4c120103e924ae679d317b9a2b46ec2b4a9 /lib | |
| parent | 22e2bf9239c3c5ee87a59910d88107ff359b24df (diff) | |
Fix missing REQUEST_METHOD
Useful when executing actualize_script.php
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Minz/Request.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php index f9b8e2564..f3ecaf55c 100644 --- a/lib/Minz/Request.php +++ b/lib/Minz/Request.php @@ -222,6 +222,7 @@ class Minz_Request { } public static function isPost() { - return $_SERVER['REQUEST_METHOD'] === 'POST'; + return isset($_SERVER['REQUEST_METHOD']) && + $_SERVER['REQUEST_METHOD'] === 'POST'; } } |
