improved get parameter retrieval
This commit is contained in:
parent
eb2e78a125
commit
b28e7e4125
1 changed files with 7 additions and 1 deletions
|
@ -125,7 +125,13 @@ function getMandatoryPostParameter($parameterName, $message = '', $json = false)
|
|||
}
|
||||
|
||||
function getGetParameter($parameterName) {
|
||||
return $_GET[$parameterName];
|
||||
if (array_key_exists($parameterName, $_GET)
|
||||
&& isset($_GET[$parameterName])
|
||||
&& !empty($_GET[$parameterName])) {
|
||||
return $_GET[$parameterName];
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
function getOptionalGetParameter($parameterName, $default = NULL) {
|
||||
|
|
Loading…
Reference in a new issue