Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fix PHP error - wrong argument type
Initialize $t_filter variable as array() instead of '' in
current_user_get_bug_filter(), to ensure its type is correct when
calling filter_ensure_valid_filter().

Fixes #23921
  • Loading branch information
dregad committed Feb 2, 2018
1 parent d0d5111 commit de686a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/current_user_api.php
Expand Up @@ -238,7 +238,7 @@ function current_user_ensure_unprotected() {
*/
function current_user_get_bug_filter( $p_project_id = null ) {
$f_filter_string = gpc_get_string( 'filter', '' );
$t_filter = '';
$t_filter = array();

if( !is_blank( $f_filter_string ) ) {
if( is_numeric( $f_filter_string ) ) {
Expand Down

0 comments on commit de686a9

Please sign in to comment.