From: jamiesensei Date: Wed, 15 Aug 2007 11:08:37 +0000 (+0000) Subject: small commenting change X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f6ea3132c163d75132526bfce39732ad049e654a;p=moodle.git small commenting change --- 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++;