@@ -98,7 +98,7 @@ |
||
98 | 98 | $first = ( $offset > 0 ? 0 : null ); |
99 | 99 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
100 | 100 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
101 | -$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
101 | +$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
102 | 102 | |
103 | 103 | |
104 | 104 | $map = $this->get( 'itemMap', array() ); |
@@ -231,8 +231,7 @@ |
||
231 | 231 | $data[] = $entryFcn( $productItem ); |
232 | 232 | $included = array_merge( $included, $refFcn( $productItem, 0 ) ); |
233 | 233 | } |
234 | - } |
|
235 | - else |
|
234 | + } else |
|
236 | 235 | { |
237 | 236 | $data = $entryFcn( $items ); |
238 | 237 | $included = $refFcn( $items, 0 ); |