cvs: php-bugs-web /include functions.inc
| From: | jim winstead | Date: | Mon, 29 Apr 2002 00:53:42 +0000 |
| Subject: | cvs: php-bugs-web /include functions.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-9928@lists.php.net to get a copy of this message | ||
jimw Sun Apr 28 20:53:42 2002 EDT
Modified files:
/php-bugs-web/include functions.inc
Log:
make submitter actively choose a version
Index: php-bugs-web/include/functions.inc
diff -u php-bugs-web/include/functions.inc:1.27 php-bugs-web/include/functions.inc:1.28
--- php-bugs-web/include/functions.inc:1.27 Sun Apr 14 19:33:07 2002
+++ php-bugs-web/include/functions.inc Sun Apr 28 20:53:42 2002
@@ -93,6 +93,7 @@
function show_version_options($current,$default="")
{
$versions = array("4.2.0", "4.1.2",
"4.0CVS-".date("Y-m-d"));
+ echo "<option value=\"\">--Please Select--</option>\n";
while (list(,$v) = each($versions)) {
echo "<option", ($current == $v ? " selected" : ""),
">$v</option>\n";
if ($current == $v) $use++;
@@ -325,6 +326,10 @@
if ($in['php_version'] == 'earlier') {
$errors[] = "Please select a valid PHP version. If your PHP version is too old, please
upgrade first and see if the problem has not already been fixed.";
+ }
+
+ if (!$in['php_version']) {
+ $errors[] = "Please select a valid PHP version.";
}
if (!$in['sdesc']) {