Skip to content

Commit

Permalink
Readability: More logical order
Browse files Browse the repository at this point in the history
Even if its slower, readability is winning over here
  • Loading branch information
pH-7 committed Jun 27, 2022
1 parent 2b1bbe6 commit 7658ee9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function index(): void
$this->oPage->getNbItemsPerPage()
);

if (!empty($aUsers) && $this->isSearch()) {
if ($this->isSearch() && !empty($aUsers)) {
Header::redirect(
Uri::get('user', 'browse', 'index'),
t('No results. Please try again with wider or different search criteria.'),
Expand Down

0 comments on commit 7658ee9

Please sign in to comment.