Skip to content

A free, self-hostable news aggregator…

Better function isPost

Marien Fressinaud9f6fa5f7c6e4
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index d4e1355d7..282d47a77 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -199,6 +199,6 @@ class Minz_Request {
}
public static function isPost () {
- return !empty ($_POST) || !empty ($_FILES);
+ return $_SERVER['REQUEST_METHOD'] === 'POST';
}
}