aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Minz/Request.php3
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';
}
}