From 85b3ac7e807e43f31e541ff6078bd6f76a00033d Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 9 Jun 2011 14:10:38 +0000 Subject: [PATCH] Added requirement to choose a group. Defaults to 'Choose One' --- svn-php.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/svn-php.php b/svn-php.php index 318191cab..114446846 100644 --- a/svn-php.php +++ b/svn-php.php @@ -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.
"; } - 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.
"; } if (!isset($_POST['guidelines']) || !$_POST['guidelines']) {