diff --git a/core/bug_api.php b/core/bug_api.php index 83471f6cf9..65f6c7983d 100644 --- a/core/bug_api.php +++ b/core/bug_api.php @@ -917,7 +917,7 @@ function bug_text_cache_row( $p_bug_id, $p_trigger_errors = true ) { return false; } } - + $g_cache_bug_text[$c_bug_id] = $t_row; return $t_row; diff --git a/core/bug_revision_api.php b/core/bug_revision_api.php index b29a87f548..30644572e3 100644 --- a/core/bug_revision_api.php +++ b/core/bug_revision_api.php @@ -58,7 +58,7 @@ function bug_revision_add( $p_bug_id, $p_user_id, $p_type, $p_value, $p_bugnote_ } else { $t_timestamp = $p_timestamp; } - + $t_query = 'INSERT INTO {bug_revision} ( bug_id, bugnote_id, user_id, timestamp, type, value @@ -238,11 +238,11 @@ function bug_revision_last( $p_bug_id, $p_type = REV_ANY, $p_bugnote_id = 0 ) { $t_result = db_query( $t_query, $t_params, 1 ); $t_row = db_fetch_array( $t_result ); - if( $t_row ) { - return $t_row; - } - - return null; + if( $t_row ) { + return $t_row; + } else { + return null; + } } /** diff --git a/core/filter_api.php b/core/filter_api.php index 220a87cfc4..358b6b83af 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -2011,7 +2011,7 @@ function filter_get_bug_rows( &$p_page_number, &$p_per_page, &$p_page_count, &$p $t_where_params[] = $c_search; $t_where_params[] = $c_search; $t_where_params[] = $c_search; - + if( is_numeric( $t_search_term ) ) { # PostgreSQL on 64-bit OS hack (see #14014) if( PHP_INT_MAX > 0x7FFFFFFF && db_is_pgsql() ) {