Skip to content

Commit de686a9

Browse files
committed
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
1 parent d0d5111 commit de686a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: core/current_user_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function current_user_ensure_unprotected() {
238238
*/
239239
function current_user_get_bug_filter( $p_project_id = null ) {
240240
$f_filter_string = gpc_get_string( 'filter', '' );
241-
$t_filter = '';
241+
$t_filter = array();
242242

243243
if( !is_blank( $f_filter_string ) ) {
244244
if( is_numeric( $f_filter_string ) ) {

0 commit comments

Comments
 (0)