summaryrefslogtreecommitdiffstats
path: root/inc
diff options
context:
space:
mode:
authorChristian Klinger2016-06-17 15:27:01 +0200
committerChristian Klinger2016-06-17 15:27:01 +0200
commitd40eecad2726dc61983caae81017acbf9f92237a (patch)
treec0e4b534e833ba5ffb49ece1d68dcfcff0af4f47 /inc
parent"Edit" for exam periods, UTC timestamps. (diff)
parent[locations] Handle machine UUID param to determine location (diff)
downloadslx-admin-d40eecad2726dc61983caae81017acbf9f92237a.tar.gz
slx-admin-d40eecad2726dc61983caae81017acbf9f92237a.tar.xz
slx-admin-d40eecad2726dc61983caae81017acbf9f92237a.zip
Merge branch 'modularization' of git.openslx.org:openslx-ng/slx-admin into modularization
Diffstat (limited to 'inc')
-rw-r--r--inc/request.inc.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/inc/request.inc.php b/inc/request.inc.php
index 0052fb24..515f723d 100644
--- a/inc/request.inc.php
+++ b/inc/request.inc.php
@@ -47,16 +47,19 @@ class Request
}
/**
- * @return true iff the request is a GET request
+ * @return true iff the request is a POST request
*/
- public static function isPost() {
- return $_SERVER['REQUEST_METHOD'] == 'POST';
+ public static function isPost()
+ {
+ return $_SERVER['REQUEST_METHOD'] === 'POST';
}
/**
- * @return true iff the request is a POST request
+ * @return true iff the request is a GET request
*/
- public static function isGet() {
- return $_SERVER['REQUEST_METHOD'] == 'GET';
+ public static function isGet()
+ {
+ return $_SERVER['REQUEST_METHOD'] === 'GET';
}
+
}