Skip to content

Commit

Permalink
Fix PHP 8 warning on manage_user_page
Browse files Browse the repository at this point in the history
Declaring a required parameter after an optional one is deprecated in
PHP 8.

Fixed also usage of undefined constant ALL

Fixes #27464
  • Loading branch information
atrol committed Nov 8, 2020
1 parent b92f835 commit 928875f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/print_api.php
Expand Up @@ -1377,7 +1377,7 @@ function print_view_bug_sort_link( $p_string, $p_sort_field, $p_sort, $p_dir, $p
* @param string $p_class The CSS class of the link.
* @return void
*/
function print_manage_user_sort_link( $p_page, $p_string, $p_field, $p_dir, $p_sort_by, $p_hide_inactive = 0, $p_filter = ALL, $p_search, $p_show_disabled = 0, $p_class = '' ) {
function print_manage_user_sort_link( $p_page, $p_string, $p_field, $p_dir, $p_sort_by, $p_hide_inactive = 0, $p_filter = 'ALL', $p_search = '', $p_show_disabled = 0, $p_class = '' ) {
if( $p_sort_by == $p_field ) {
# If this is the selected field flip the order
if( 'ASC' == $p_dir || ASCENDING == $p_dir ) {
Expand Down

0 comments on commit 928875f

Please sign in to comment.