small commenting change

This commit is contained in:
jamiesensei 2007-08-15 11:08:37 +00:00
parent 20f500dc4d
commit f6ea3132c1

View file

@ -217,7 +217,6 @@ class moodle_list{
$records = $this->records; $records = $this->records;
$page = $this->page; $page = $this->page;
if (!empty($page)) { if (!empty($page)) {
$this->firstitem = ($page-1) * $this->itemsperpage + 1; $this->firstitem = ($page-1) * $this->itemsperpage + 1;
$this->lastitem = $this->firstitem + $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); $newlistitem =& new $this->listitemclassname($record, $this, $newattributes, $inpage);
if ($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); $newlistitem->create_children($records, $this->childparent, $record->id);
} else { } else {
//don't recurse down the tree for items that are not on this page
$this->paged = true; $this->paged = true;
} }
$itemiter++; $itemiter++;