Changeset 2454 for branches/release-39/lib/MT/CMS/Entry.pm
- Timestamp:
- 05/28/08 10:32:31 (18 months ago)
- Files:
-
- 1 modified
-
branches/release-39/lib/MT/CMS/Entry.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/CMS/Entry.pm
r2417 r2454 559 559 $arg{direction} = 'descend'; 560 560 $arg{limit} = $limit + 1; 561 if ( $total && $offset > $total - 1 ) { 561 if ( $total <= $limit ) { 562 delete $arg{limit}; 563 $offset = 0; 564 } 565 elsif ( $total && $offset > $total - 1 ) { 562 566 $arg{offset} = $offset = $total - $limit; 563 567 } 564 568 elsif ( $offset && ( ( $offset < 0 ) || ( $total - $offset < $limit ) ) ) { 565 $arg{offset} = $offset = 0;569 $arg{offset} = $offset = $total - $limit; 566 570 } 567 571 else {
