Skip to content

Commit

Permalink
fix: remove unnecessary check in blade
Browse files Browse the repository at this point in the history
  • Loading branch information
richard015ar committed Feb 13, 2024
1 parent 2db7ca2 commit ac52bb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion resources/views/users/assign.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="wrap">
<h1 class="wp-heading-inline">{{ __('Assign Users', 'pressbooks-multi-institution') }}</h1>

@if( !empty($params['s']) && !empty($params['orderby']))
@if(!empty($params['s']))
<div class="filtering">
<ul>
<li>{!! sprintf( __( '<strong>Showing results for:</strong> %s', 'pressbooks-multi-institution' ), $params['s'] ) !!}</li>
Expand Down
1 change: 0 additions & 1 deletion src/Controllers/InstitutionsUsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ public function assign(): string
'list_url' => network_admin_url('admin.php?page=pb_multi_institutions_users'),
'table' => $this->table,
'result' => $result,
'search_term' => $_REQUEST['s'] ?? '',
'params' => collect($filters)
->flatMap(fn (string $filter, string $key) => [$key => sanitize_text_field($_REQUEST[$key] ?? $filter)])
->toArray(),
Expand Down

0 comments on commit ac52bb6

Please sign in to comment.