diff options
Diffstat (limited to 'framework/Data')
-rw-r--r-- | framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php b/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php index 851bf903..edaeadd9 100644 --- a/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php +++ b/framework/Data/ActiveRecord/Scaffold/TScaffoldListView.php @@ -110,9 +110,11 @@ class TScaffoldListView extends TScaffoldBase $limit = $total - $offset;
$criteria = new TActiveRecordCriteria($this->getSearchCondition(), $this->getSearchParameters());
if($limit > 0)
+ {
$criteria->setLimit($limit);
- if($offset <= $total)
- $criteria->setOffset($offset);
+ if($offset <= $total)
+ $criteria->setOffset($offset);
+ }
$order = explode(' ',$this->_sort->getSelectedValue(), 2);
if(is_array($order) && count($order) === 2)
$criteria->OrdersBy[$order[0]] = $order[1];
|