cvs: php-bugs-web / bug.php

[email protected] ("Felipe Pena")
Newsgroups php.webmaster
Message-ID <cvsfelipe1224794824@cvsserver>
felipe		Thu Oct 23 20:47:04 2008 UTC

  Modified files:              
    /php-bugs-web	bug.php 
  Log:
  - Missing check for comment size (thanks Hannes!)
  
http://cvs.php.net/viewvc.cgi/php-bugs-web/bug.php?r1=1.91&r2=1.92&diff_format=u
Index: php-bugs-web/bug.php
diff -u php-bugs-web/bug.php:1.91 php-bugs-web/bug.php:1.92
--- php-bugs-web/bug.php:1.91	Thu Oct 23 12:02:34 2008
+++ php-bugs-web/bug.php	Thu Oct 23 20:47:04 2008
@@ -179,7 +179,7 @@
 	if ($in['status'] == 'Bogus' && !in_array($bug['status'], array ('Bogus', 'Closed', 'Duplicate', 'No feedback', 'Wont fix'))
 			&& strlen(trim($ncomment)) == 0) {
 		$errors[] = "You must provide a comment when marking a bug 'Bogus'";
-	} elseif ($in['status'] == 'To be documented') {
+	} elseif ($in['status'] == 'To be documented' && strlen(trim($ncomment)) == 0) {
 		$errors[] = "You must provide a comment to help in the feature/issue documentation";
 	} elseif ($in['resolve']) {
 		if (!$trytoforce && $RESOLVE_REASONS[$in['resolve']]['status'] == $bug['status']) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.