From dd97c002a6866274d227f37ad421fd6aad2837ac Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 19 Nov 2013 10:43:30 -0500 Subject: [PATCH] fixed test break. --- framework/yii/data/Sort.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/data/Sort.php b/framework/yii/data/Sort.php index 6630cfd..9b73cc0 100644 --- a/framework/yii/data/Sort.php +++ b/framework/yii/data/Sort.php @@ -355,7 +355,7 @@ class Sort extends Object $definition = $this->attributes[$attribute]; $directions = $this->getAttributeOrders(); if (isset($directions[$attribute])) { - $descending = $directions[$attribute] === SORT_DESC; + $descending = $directions[$attribute] !== SORT_DESC; unset($directions[$attribute]); } else { $descending = isset($definition['default']) && $definition['default'] === SORT_DESC;