Skip to content

A free, self-hostable news aggregator…

Fix missing REQUEST_METHOD

Marien Fressinaudede94098be5d
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';
}
}