From: Stéphane Jacob Date: Tue, 2 Mar 2010 20:20:11 +0000 (+0100) Subject: No need to fetch bounds if they are not required. X-Git-Tag: core/1.1.0~65 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;ds=sidebyside;h=b9bd8dd360cf1a593c9e5c8cbae62ff1ba723b4c;p=platal.git No need to fetch bounds if they are not required. Signed-off-by: Stéphane Jacob --- 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);