cvs: php-bugs-web / report.php /include functions.inc

From: Date: Tue, 05 Apr 2005 01:55:05 +0000
Subject: cvs: php-bugs-web / report.php /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-27861@lists.php.net to get a copy of this message
philip Mon Apr 4 21:55:05 2005 EDT Modified files: /php-bugs-web report.php /php-bugs-web/include functions.inc Log: Mark Irrelevant bugs as Irrelevant. http://cvs.php.net/diff.php/php-bugs-web/report.php?r1=1.56&r2=1.57&ty=u Index: php-bugs-web/report.php diff -u php-bugs-web/report.php:1.56 php-bugs-web/report.php:1.57 --- php-bugs-web/report.php:1.56 Fri Jan 21 09:38:42 2005 +++ php-bugs-web/report.php Mon Apr 4 21:55:04 2005 @@ -123,6 +123,9 @@ if (!empty($in['actres']) || $in['actres'] === '0') { $fdesc .= "Actual result:\n--------------\n". $in['actres'] ."\n"; } + if (is_phpversion_irrelevant($in['bug_type'])) { + $in['php_version'] = 'Irrelevant'; + } $query = "INSERT INTO bugdb (bug_type,email,sdesc,ldesc,php_version,php_os,status,ts1,passwd) VALUES ('$in[bug_type]','$in[email]','$in[sdesc]','$fdesc','$in[php_version]','$in[php_os]','Open',NOW(),'$in[passwd]')"; $ret = mysql_query($query); http://cvs.php.net/diff.php/php-bugs-web/include/functions.inc?r1=1.146&r2=1.147&ty=u Index: php-bugs-web/include/functions.inc diff -u php-bugs-web/include/functions.inc:1.146 php-bugs-web/include/functions.inc:1.147 --- php-bugs-web/include/functions.inc:1.146 Fri Apr 1 02:26:39 2005 +++ php-bugs-web/include/functions.inc Mon Apr 4 21:55:05 2005 @@ -489,6 +489,14 @@ return $errors; } +function is_phpversion_irrelevant($bugtype) +{ + if (in_array($bugtype, array('Documentation problem','Livedocs problem','Website problem','Systems problem'))) { + return true; + } + return false; +} + function get_bugtype_mail($bug_type) { global $mail_bugs_to;

« previous php.mirrors (#27861) next »