From f6ea3132c163d75132526bfce39732ad049e654a Mon Sep 17 00:00:00 2001 From: jamiesensei Date: Wed, 15 Aug 2007 11:08:37 +0000 Subject: [PATCH] small commenting change --- lib/listlib.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/listlib.php b/lib/listlib.php index ebd5091915..c3c44742f6 100644 --- a/lib/listlib.php +++ b/lib/listlib.php @@ -217,7 +217,6 @@ class moodle_list{ $records = $this->records; $page = $this->page; if (!empty($page)) { - $this->firstitem = ($page-1) * $this->itemsperpage + 1; $this->lastitem = $this->firstitem + $this->itemsperpage - 1; } @@ -243,9 +242,9 @@ class moodle_list{ } $newlistitem =& new $this->listitemclassname($record, $this, $newattributes, $inpage); if ($inpage){ - //but don't recurse down the tree for items that are not on this page $newlistitem->create_children($records, $this->childparent, $record->id); } else { + //don't recurse down the tree for items that are not on this page $this->paged = true; } $itemiter++; -- 2.39.5