another undefined index removed

svn path=/trunk/boinc/; revision=6116
This commit is contained in:
Bruce Allen 2005-05-11 10:11:54 +00:00
parent f17972048e
commit 5187814770
1 changed files with 2 additions and 1 deletions

View File

@ -462,7 +462,8 @@ function post_int($name, $optional=false) {
}
function get_str($name, $optional=false) {
$x = $_GET[$name];
$x = null;
if (isset($_GET[$name])) $x = $_GET[$name];
if (!$x && !$optional) {
error_page("missing or bad parameter: $name");
}