svn: /web/php-bugs/trunk/ bug.php
| From: | Jani Taskinen | Date: | Fri, 19 Feb 2010 21:35:15 +0000 |
| Subject: | svn: /web/php-bugs/trunk/ bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-7356@lists.php.net to get a copy of this message | ||
jani Fri, 19 Feb 2010 21:35:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295266
Log:
- Get rid of the useless crap in comments (please, this is done so much better in TNBT, could
someone either update that to be the used tracker or give me the account on that server?)
Changed paths:
U web/php-bugs/trunk/bug.php
Modified: web/php-bugs/trunk/bug.php
===================================================================
--- web/php-bugs/trunk/bug.php 2010-02-19 21:11:38 UTC (rev 295265)
+++ web/php-bugs/trunk/bug.php 2010-02-19 21:35:15 UTC (rev 295266)
@@ -157,7 +157,7 @@
$from = ($bug['email'] != $in['email'] &&
!empty($in['email'])) ? $in['email'] : $bug['email'];
- $ncommentDb = trim(comment_get_headers($bug, $in) . "\n\n$ncomment");
+// $ncommentDb = trim(comment_get_headers($bug, $in) . "\n\n$ncomment");
if (!$errors && !($errors = incoming_details_are_valid($in))) {
/* update bug record */
@@ -165,8 +165,8 @@
$success = @mysql_query($query);
/* add comment */
- if ($success && !empty($ncommentDb)) {
- $query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$from',NOW(),'$ncommentDb')";
+ if ($success && !empty($ncomment)) {
+ $query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$from',NOW(),'$ncomment')";
$success = @mysql_query($query);
}
}
@@ -214,15 +214,15 @@
}
}
- $ncommentDb = trim(comment_get_headers($bug, $in) . "\n\n$ncomment");
+// $ncommentDb = trim(comment_get_headers($bug, $in) . "\n\n$ncomment");
if (!$errors && !($errors = incoming_details_are_valid($in))) {
$query = 'UPDATE bugdb SET ';
$query.= ($bug['email'] != $in['email'] &&
!empty($in['email'])) ? "email='{$in['email']}', " :
'';
$query.= "sdesc='{$in['sdesc']}',
status='{$in['status']}', bug_type='{$in['bug_type']}',
assign='{$in['assign']}',
php_version='{$in['php_version']}',
php_os='{$in['php_os']}', ts2=NOW() WHERE id=$id";
$success = @mysql_query($query);
- if ($success && !empty($ncommentDb)) {
- $query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$user@php.net',NOW(),'$ncommentDb')";
+ if ($success && !empty($ncomment)) {
+ $query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$user@php.net',NOW(),'$ncomment')";
$success = @mysql_query($query);
}