com web/php: Added requirement to choose a group. Defaults to 'Choose One': svn-php.php
| From: | Paul Dragoonis | Date: | Thu, 09 Jun 2011 14:10:38 +0000 |
| Subject: | com web/php: Added requirement to choose a group. Defaults to 'Choose One': svn-php.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23545@lists.php.net to get a copy of this message | ||
Commit: f088962c1157870efdbfa2f8e3f6b51756974ab8
Author: Philip Olson <philip@php.net> Thu, 9 Jun 2011 14:10:38 +0000
Parents: cf8998720e2874ead5ad955c3258c64635de3991
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=f088962c1157870efdbfa2f8e3f6b51756974ab8
Log:
Added requirement to choose a group. Defaults to 'Choose One'
Changed paths:
M svn-php.php
Diff:
diff --git a/svn-php.php b/svn-php.php
index 318191c..1144468 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. <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']) {