Author: pwang
Date: 2012-01-04 10:11:35 -0800 (Wed, 04 Jan 2012)
New Revision: 27911
Modified:
new_cytoscape_website/bugreport/bugreportdelete.php
Log:
bug fixed
Modified: new_cytoscape_website/bugreport/bugreportdelete.php
===================================================================
--- new_cytoscape_website/bugreport/bugreportdelete.php 2012-01-04 18:11:30 UTC
(rev 27910)
+++ new_cytoscape_website/bugreport/bugreportdelete.php 2012-01-04 18:11:35 UTC
(rev 27911)
@@ -73,19 +73,26 @@
showerror();
// Get reporter_id for this bug report
- $reporter_auto_id = null;
+ $reporter_id = null;
$query = "SELECT reporter_id FROM bugs WHERE bug_auto_id =$bugid";
// Run the query
if (!($result = @ mysql_query($query, $connection)))
showerror();
+ $_row = @ mysql_fetch_array($result);
+ $reporter_id = $_row['reporter_id'];
+
+
+ // Get the number of reports reported by this reporter
+ $query = "SELECT bug_auto_id FROM bugs WHERE reporter_id =$reporter_id";
+ // Run the query
+ if (!($result = @ mysql_query($query, $connection)))
+ showerror();
+
$reportCount = @ mysql_num_rows($result);
- if ($reportCount == 1){
- $_row = @ mysql_fetch_array($result);
- $reporter_auto_id = $_row['reporter_id'];
-
+ if ($reportCount == 1){
// delete the reporter because the reporter only report this bug
- $query = "delete from reporter where
reporter_auto_id=$reporter_auto_id";
+ $query = "delete from reporter where reporter_auto_id=$reporter_id";
// Run the query
if (!($result = @ mysql_query($query, $connection)))
showerror();
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.