svn: /web/php-bugs/trunk/ bug.php
| From: | Daniel Egeberg | Date: | Thu, 18 Feb 2010 14:28:49 +0000 |
| Subject: | svn: /web/php-bugs/trunk/ bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-7346@lists.php.net to get a copy of this message | ||
degeberg Thu, 18 Feb 2010 14:28:49 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295238
Log:
Made sure that the metadata changelog shows up even when no additional comment is added.
Changed paths:
U web/php-bugs/trunk/bug.php
Modified: web/php-bugs/trunk/bug.php
===================================================================
--- web/php-bugs/trunk/bug.php 2010-02-18 14:25:56 UTC (rev 295237)
+++ web/php-bugs/trunk/bug.php 2010-02-18 14:28:49 UTC (rev 295238)
@@ -165,7 +165,7 @@
$success = @mysql_query($query);
/* add comment */
- if ($success && !empty($ncomment)) {
+ if ($success && !empty($ncommentDb)) {
$query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$from',NOW(),'$ncommentDb')";
$success = @mysql_query($query);
}
@@ -221,7 +221,7 @@
$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($ncomment)) {
+ if ($success && !empty($ncommentDb)) {
$query = "INSERT INTO bugdb_comments (bug, email, ts, comment) VALUES
($id,'$user@php.net',NOW(),'$ncommentDb')";
$success = @mysql_query($query);
}