projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
643ae90
)
No need to fetch bounds if they are not required.
author
Stéphane Jacob
<sj@m4x.org>
Tue, 2 Mar 2010 20:20:11 +0000
(21:20 +0100)
committer
Stéphane Jacob
<sj@m4x.org>
Tue, 2 Mar 2010 20:20:11 +0000
(21:20 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
classes/plset.php
patch
|
blob
|
blame
|
history
diff --git
a/classes/plset.php
b/classes/plset.php
index
b838fc9
..
985b5be
100644
(file)
--- a/
classes/plset.php
+++ b/
classes/plset.php
@@
-312,9
+312,9
@@
abstract class MultipageView implements PlView
$res = $this->set->get($this->limit());
$show_bounds = $this->bounds();
- $start = current($res);
- $end = end($res);
if ($show_bounds) {
+ $start = current($res);
+ $end = end($res);
if ($show_bounds == 1) {
$first = $this->getBoundValue($start);
$last = $this->getBoundValue($end);