From 0703d073a9fa2743c1b86a64737c830bf0b61efa Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Sat, 11 Apr 2015 15:28:54 +0200 Subject: [PATCH] Minor improvement in a comparison expression --- Controller/AdminController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/AdminController.php b/Controller/AdminController.php index c3190ce6ec..8da0706e4d 100644 --- a/Controller/AdminController.php +++ b/Controller/AdminController.php @@ -368,7 +368,7 @@ protected function findAll($entityClass, $page = 1, $maxPerPage = 15, $sortField ; if (null !== $sortField) { - if (!$sortDirection || !in_array(strtoupper($sortDirection), array('ASC', 'DESC'))) { + if (empty($sortDirection) || !in_array(strtoupper($sortDirection), array('ASC', 'DESC'))) { $sortDirection = 'DESC'; }