Changeset 1289
- Timestamp:
- 01/19/08 11:13:24 (8 months ago)
- Files:
-
- branches/release-28/lib/MT/App/CMS.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-28/lib/MT/App/CMS.pm
r1277 r1289 2912 2912 $arg{offset} = $offset = $total - $limit; 2913 2913 } 2914 elsif ( ( $offset < 0 ) || ( $total - $offset < $limit) ) {2915 $arg{offset} = $offset = 0;2914 elsif ( $offset && ( ( $offset < 0 ) || ( $total - $offset < $limit ) ) ) { 2915 $arg{offset} = $offset = $total - $limit; 2916 2916 } 2917 2917 else { … … 11895 11895 $arg{offset} = $offset = $total - $limit; 11896 11896 } 11897 elsif ( ( $offset < 0 ) || ( $total - $offset < $limit) ) {11898 $arg{offset} = $offset = 0;11897 elsif ( $offset && ( ( $offset < 0 ) || ( $total - $offset < $limit ) ) ) { 11898 $arg{offset} = $offset = $total - $offset; 11899 11899 } 11900 11900 elsif ($offset) { … … 12332 12332 $arg{offset} = $offset = $total - $limit; 12333 12333 } 12334 elsif ( ( $offset < 0 ) || ( $total - $offset < $limit) ) {12335 $arg{offset} = $offset = 0;12334 elsif ( $offset && ( ( $offset < 0 ) || ( $total - $offset < $limit ) ) ) { 12335 $arg{offset} = $offset = $total - $offset; 12336 12336 } 12337 12337 else {
