1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Added requirement to choose a group. Defaults to 'Choose One'

This commit is contained in:
Philip Olson
2011-06-09 14:10:38 +00:00
parent abece2e2e4
commit 85b3ac7e80

View File

@@ -23,6 +23,7 @@ $SIDEBAR_DATA = '
site_header("Using SVN for PHP Development", array("current" => "FIXME"));
$groups = array(
"none" => "Choose One",
"php" => "PHP Group",
"pear" => "PEAR Group",
"pecl" => "PECL Group",
@@ -72,7 +73,7 @@ if (count($_POST) && (!isset($_POST['purpose']) || !is_array($_POST['purpose'])
if (empty($_POST['yesno']) || $_POST['yesno'] != 'yes') {
$error .= "You did not fill the form out correctly. <br />";
}
if (empty($_POST['group']) || !isset($groups[$_POST['group']])) {
if (empty($_POST['group']) || $_POST['group'] === 'none' || !isset($groups[$_POST['group']])) {
$error .= "You did not fill out where to send the request. <br />";
}
if (!isset($_POST['guidelines']) || !$_POST['guidelines']) {