From b9bd8dd360cf1a593c9e5c8cbae62ff1ba723b4c Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Tue, 2 Mar 2010 21:20:11 +0100 Subject: [PATCH] No need to fetch bounds if they are not required. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- classes/plset.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/plset.php b/classes/plset.php index b838fc9..985b5be 100644 --- 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); -- 2.1.4