Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix double use of db_result() bug when assigning handlers

  • Loading branch information...
commit ccd78bac79a61baa025b85b904bec11b818a37aa 1 parent d89bb81
@grangeway grangeway authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 core/bug_api.php
View
5 core/bug_api.php
@@ -491,9 +491,10 @@ function create() {
FROM $t_category_table
WHERE id=" . db_param();
$t_result = db_query_bound( $query, array( $this->category_id ) );
+ $t_handler = db_result( $t_result );
- if( $t_result = db_result( $t_result ) ) {
- $this->handler_id = db_result( $t_result );
+ if( $t_handler !== false ) {
+ $this->handler_id = $t_handler;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.