svn: /web/php-bugs/trunk/www/ report.php
| From: | Felipe Pena | Date: | Sun, 03 Jul 2011 18:01:36 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/ report.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11444@lists.php.net to get a copy of this message | ||
felipe Sun, 03 Jul 2011 18:01:36 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312859
Log:
- Fix warnings when using bug preview
Changed paths:
U web/php-bugs/trunk/www/report.php
Modified: web/php-bugs/trunk/www/report.php
===================================================================
--- web/php-bugs/trunk/www/report.php 2011-07-03 17:03:25 UTC (rev 312858)
+++ web/php-bugs/trunk/www/report.php 2011-07-03 18:01:36 UTC (rev 312859)
@@ -161,6 +161,10 @@
$fdesc .= $_POST['in']['actres'] . "\n";
}
+ // Bug type 'Security' marks automatically the report as private
+ $_POST['in']['private'] = ($_POST['in']['bug_type'] ==
'Security') ? 'Y' : 'N';
+ $_POST['in']['block_user_comment'] = 'N';
+
if (isset($_POST['preview'])) {
$_POST['in']['status'] = 'Open';
$_SESSION['bug_preview'] = $_POST['in'];
@@ -168,9 +172,6 @@
redirect('bug.php?id=preview');
exit;
}
-
- // Bug type 'Security' marks automatically the report as private
- $is_private = ($_POST['in']['bug_type'] == 'Security') ?
'Y' : 'N';
$res = $dbh->prepare('
INSERT INTO bugdb (
@@ -197,7 +198,7 @@
$_POST['in']['php_os'],
bugs_get_hash($_POST['in']['passwd']),
$_POST['in']['reporter_name'],
- $is_private
+ $_POST['in']['private']
)
);
if (PEAR::isError($res)) {