From 36fbfd7904917396816157c258ac56df2a86cdcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Sat, 7 May 2005 12:28:45 +0000 Subject: [PATCH] bugfix --- resources/inc/class.so_resources.inc.php | 2 +- resources/setup/etemplates.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/inc/class.so_resources.inc.php b/resources/inc/class.so_resources.inc.php index a2b95347cd..950cc642a9 100755 --- a/resources/inc/class.so_resources.inc.php +++ b/resources/inc/class.so_resources.inc.php @@ -57,7 +57,7 @@ class so_resources ($order_by != '' ? " ORDER BY $order_by" : ''),__LINE__,__FILE__); $nr = $this->db->nf(); - if($offset > 0) + if($offset > 0 && $nr > $offset) { $this->db->seek($offset-1); } diff --git a/resources/setup/etemplates.inc.php b/resources/setup/etemplates.inc.php index 848de0d53f..9e8e0cd388 100644 --- a/resources/setup/etemplates.inc.php +++ b/resources/setup/etemplates.inc.php @@ -1,5 +1,5 @@