From a84e48af433679ead79c5466f46432a6b20c709f Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Wed, 11 May 2005 09:48:07 +0000 Subject: [PATCH] Eliminate typo and another undefined variable svn path=/trunk/boinc/; revision=6112 --- html/inc/util.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/html/inc/util.inc b/html/inc/util.inc index e6ec1d1346..4bddd85834 100644 --- a/html/inc/util.inc +++ b/html/inc/util.inc @@ -437,7 +437,8 @@ function html_info() { } function get_int($name, $optional=false) { - $x = $_GET[$name]; + $x=null; + if (isset($_GET[$name])) $x = $_GET[$name]; if (!is_numeric($x)) { if ($optional) { return null; @@ -462,7 +463,7 @@ function post_int($name, $optional=false) { function get_str($name, $optional=false) { $x = $_GET[$name]; - if (!$x && !optional) { + if (!$x && !$optional) { error_page("missing or bad parameter: $name"); } return $x;