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 @@