Skip to content

Commit

Permalink
Disable memberlist url sort for guests
Browse files Browse the repository at this point in the history
Signed-off-by: albertlast [email protected]
  • Loading branch information
albertlast committed Apr 5, 2022
1 parent 055cc00 commit 7dd9c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Memberlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function Memberlist()
'label' => $txt['website'],
'link_with' => 'website',
'sort' => array(
'down' => 'mem.website_url = \'\', mem.website_url is null, mem.website_url DESC',
'up' => 'mem.website_url != \'\', mem.website_url is not null, mem.website_url ASC'
'down' => $context['user']['is_guest'] ? '1=1' : 'mem.website_url = \'\', mem.website_url is null, mem.website_url DESC',
'up' => $context['user']['is_guest'] ? ' 1=1' : 'mem.website_url != \'\', mem.website_url is not null, mem.website_url ASC'
),
),
'id_group' => array(
Expand Down

0 comments on commit 7dd9c95

Please sign in to comment.