|
@@ -23,7 +23,7 @@ discard block |
|
|
block discarded – undo |
|
23
|
23
|
$first = ( $offset > 0 ? 0 : null ); |
|
24
|
24
|
$prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
|
25
|
25
|
$next = ( $offset + $limit < $total ? $offset + $limit : null ); |
|
26
|
|
-$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
|
26
|
+$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
27
|
27
|
|
|
28
|
28
|
|
|
29
|
29
|
$ref = array( 'resource', 'id', 'related', 'relatedid', 'filter', 'page', 'sort', 'include', 'fields' ); |
|
@@ -117,7 +117,7 @@ discard block |
|
|
block discarded – undo |
|
117
|
117
|
"self": "<?php $params['page']['offset'] = $offset; echo $this->url( $target, $cntl, $action, $params, [], $config ); ?>" |
|
118
|
118
|
} |
|
119
|
119
|
<?php if( isset( $this->errors ) ) : ?> |
|
120
|
|
- ,"errors": <?= json_encode( $this->errors, $pretty); ?> |
|
|
120
|
+ ,"errors": <?= json_encode( $this->errors, $pretty ); ?> |
|
121
|
121
|
|
|
122
|
122
|
<?php elseif( isset( $this->items ) ) : ?> |
|
123
|
123
|
<?php |
Please login to merge, or discard this patch.