Skip to content
Browse files

Fix double use of db_result() bug when assigning handlers

  • Loading branch information...
1 parent d89bb81 commit ccd78bac79a61baa025b85b904bec11b818a37aa @grangeway grangeway committed Jun 21, 2014
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;
}
}

0 comments on commit ccd78ba

Please sign in to comment.
Something went wrong with that request. Please try again.