Changeset 2454 for branches/release-39/lib/MT/CMS/TrackBack.pm
- Timestamp:
- 05/28/08 10:32:31 (18 months ago)
- Files:
-
- 1 modified
-
branches/release-39/lib/MT/CMS/TrackBack.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/CMS/TrackBack.pm
r2169 r2454 245 245 $arg{direction} = $sort_direction; 246 246 $arg{limit} = $limit + 1; 247 if ( $total && $offset > $total - 1 ) { 247 if ( $total <= $limit ) { 248 delete $arg{limit}; 249 $offset = 0; 250 } 251 elsif ( $total && $offset > $total - 1 ) { 248 252 $arg{offset} = $offset = $total - $limit; 249 253 } 250 254 elsif ( $offset && ( ( $offset < 0 ) || ( $total - $offset < $limit ) ) ) { 251 $arg{offset} = $offset = 0;252 } 253 els if ($offset){254 $arg{offset} = $offset ;255 $arg{offset} = $offset = $total - $limit; 256 } 257 else { 258 $arg{offset} = $offset if $offset; 255 259 } 256 260
