mirror of https://github.com/BOINC/boinc.git
Another undefined index gone
svn path=/trunk/boinc/; revision=6119
This commit is contained in:
parent
dbae4e9ca1
commit
fc194843d4
|
@ -450,7 +450,8 @@ function get_int($name, $optional=false) {
|
|||
}
|
||||
|
||||
function post_int($name, $optional=false) {
|
||||
$x = $_POST[$name];
|
||||
$x = null;
|
||||
if (isset($_POST[$name])) $x = $_POST[$name];
|
||||
if (!is_numeric($x)) {
|
||||
if ($optional) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue