From 7658ee9edacdb4bebfdb409853f3d90b03b117b8 Mon Sep 17 00:00:00 2001 From: Pierre-Henry Soria Date: Mon, 27 Jun 2022 19:48:49 +0930 Subject: [PATCH] Readability: More logical order Even if its slower, readability is winning over here --- .../app/system/modules/user/controllers/BrowseController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_protected/app/system/modules/user/controllers/BrowseController.php b/_protected/app/system/modules/user/controllers/BrowseController.php index 010ac35568..56fce3ff56 100755 --- a/_protected/app/system/modules/user/controllers/BrowseController.php +++ b/_protected/app/system/modules/user/controllers/BrowseController.php @@ -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.'),