Skip to content

Commit

Permalink
Fix jpgraph graph's for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Feb 19, 2009
1 parent 478a0aa commit f54edb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/graph_api.php
Expand Up @@ -447,7 +447,7 @@ function create_developer_summary() {

$query = "SELECT handler_id, status
FROM $t_bug_table
WHERE handler_id != '' $specific_where";
WHERE handler_id > 0 $specific_where";
$result = db_query( $query );
$t_total_handled = db_num_rows( $result );

Expand Down Expand Up @@ -506,11 +506,11 @@ function create_reporter_summary() {
$t_user_table = db_get_table( 'mantis_user_table' );
$t_bug_table = db_get_table( 'mantis_bug_table' );
$t_user_id = auth_get_current_user_id();
$specific_where = " AND " . helper_project_specific_where( $t_project_id, $t_user_id );
$specific_where = helper_project_specific_where( $t_project_id, $t_user_id );

$query = "SELECT reporter_id
FROM $t_bug_table
WHERE id != '' $specific_where";
WHERE $specific_where";
$result = db_query( $query );
$t_total_reported = db_num_rows( $result );

Expand Down

0 comments on commit f54edb1

Please sign in to comment.