cvs: php-bugs-web / bug.php
| From: | jim winstead | Date: | Tue, 19 Feb 2002 23:53:57 +0000 |
| Subject: | cvs: php-bugs-web / bug.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-8766@lists.php.net to get a copy of this message | ||
jimw Tue Feb 19 18:53:57 2002 EDT
Modified files:
/php-bugs-web bug.php
Log:
require a comment from users when they update the bug.
Index: php-bugs-web/bug.php
diff -u php-bugs-web/bug.php:1.29 php-bugs-web/bug.php:1.30
--- php-bugs-web/bug.php:1.29 Tue Feb 19 18:50:27 2002
+++ php-bugs-web/bug.php Tue Feb 19 18:53:57 2002
@@ -71,7 +71,13 @@
if (!$bug[passwd] || $bug[passwd] != stripslashes($pw)) {
$errors[] = "The password you supplied was incorrect.";
}
- elseif (!($errors = incoming_details_are_valid($in))) {
+
+ $ncomment = trim($ncomment);
+ if (!$ncomment) {
+ $errors[] = "You must provide a comment.";
+ }
+
+ if (!$errors && !($errors = incoming_details_are_valid($in))) {
/* update bug record */
$query = "UPDATE bugdb SET status='$in[status]',
bug_type='$in[bug_type]', php_version='$in[php_version]',
php_os='$in[php_os]', ts2=NOW(), email='$in[email]' WHERE id=$id";
$success = @mysql_query($query);