svn: /web/php-bugs/trunk/www/ bug.php
| From: | Jani Taskinen | Date: | Tue, 09 Mar 2010 12:49:48 +0000 |
| Subject: | svn: /web/php-bugs/trunk/www/ bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-7526@lists.php.net to get a copy of this message | ||
jani Tue, 09 Mar 2010 12:49:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295994
Log:
- Fix logic and removed unused parameter
Changed paths:
U web/php-bugs/trunk/www/bug.php
Modified: web/php-bugs/trunk/www/bug.php
===================================================================
--- web/php-bugs/trunk/www/bug.php 2010-03-09 12:48:40 UTC (rev 295993)
+++ web/php-bugs/trunk/www/bug.php 2010-03-09 12:49:48 UTC (rev 295994)
@@ -119,7 +119,7 @@
// fetch info about the bug into $bug
if (!isset($bug)) {
- $bug = bugs_get_bug($bug_id, true);
+ $bug = bugs_get_bug($bug_id);
}
// DB error
@@ -441,12 +441,10 @@
$ncomment = '';
}
-if (isset($_POST['in']) && !isset($_POST['preview']) &&
$ncomment) {
- if (!$errors) {
- mail_bug_updates($bug, $_POST['in'], $from, $ncomment, $edit, $bug_id);
- redirect("bug.php?id=$bug_id&thanks=$edit");
- exit;
- }
+if (isset($_POST['in']) && !isset($_POST['preview']) &&
!$errors) {
+ mail_bug_updates($bug, $_POST['in'], $from, $ncomment, $edit, $bug_id);
+ redirect("bug.php?id=$bug_id&thanks=$edit");
+ exit;
}
switch (txfield('bug_type', $bug, isset($_POST['in']) ? $_POST['in']
: null))