Another undefined index gone

svn path=/trunk/boinc/; revision=6119
This commit is contained in:
Bruce Allen 2005-05-11 10:30:28 +00:00
parent dbae4e9ca1
commit fc194843d4
1 changed files with 2 additions and 1 deletions

View File

@ -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;