From 1f71403d4780b87c3c60cfc49ceb8e8c6bb55bf4 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 15 Nov 2011 15:43:11 +0000 Subject: [PATCH] // fix bug position in AdminFeaturesController --- controllers/admin/AdminFeaturesController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminFeaturesController.php b/controllers/admin/AdminFeaturesController.php index 744290a1e..54c47287d 100644 --- a/controllers/admin/AdminFeaturesController.php +++ b/controllers/admin/AdminFeaturesController.php @@ -156,7 +156,9 @@ class AdminFeaturesControllerCore extends AdminController { if ($order_by && $this->context->cookie->__get($this->table.'Orderby')) $order_by = $this->context->cookie->__get($this->table.'Orderby'); - else if (!is_null($order_by)) + else if (is_null($order_by)) + $order_by = null; + else $order_by = 'position'; parent::getList($id_lang, $order_by, $order_way, $start, $limit, $id_lang_shop);