projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished refactoring Chinese Traditional translation.
[timetracker.git]
/
WEB-INF
/
lib
/
html
/
HttpRequest.class.php
diff --git
a/WEB-INF/lib/html/HttpRequest.class.php
b/WEB-INF/lib/html/HttpRequest.class.php
index
cd66a8c
..
2eb26f0
100644
(file)
--- a/
WEB-INF/lib/html/HttpRequest.class.php
+++ b/
WEB-INF/lib/html/HttpRequest.class.php
@@
-42,17
+42,17
@@
class ttHttpRequest {
return ($this->getMethod() == 'POST');
}
return ($this->getMethod() == 'POST');
}
- // The getParameter is the primary function of this class. It returns request parameter
,
+ // The getParameter is the primary function of this class. It returns request parameter
// identified by $name.
// identified by $name.
- function getParameter($name =
"", $default = null) {
+ function getParameter($name =
'', $default = null) {
switch ($this->getMethod())
{
case 'GET':
switch ($this->getMethod())
{
case 'GET':
-
if (isset($_GET[$name]) && ($_GET[$name] != ""
))
+
if (isset($_GET[$name]) && ($_GET[$name] != ''
))
return $_GET[$name];
case 'POST':
return $_GET[$name];
case 'POST':
- if (isset($_POST[$name]) && ($_POST[$name] !=
""
))
+ if (isset($_POST[$name]) && ($_POST[$name] !=
''
))
return $_POST[$name];
}
return $default;
return $_POST[$name];
}
return $default;