]> git.mjollnir.org Git - moodle.git/commitdiff
small commenting change
authorjamiesensei <jamiesensei>
Wed, 15 Aug 2007 11:08:37 +0000 (11:08 +0000)
committerjamiesensei <jamiesensei>
Wed, 15 Aug 2007 11:08:37 +0000 (11:08 +0000)
lib/listlib.php

index ebd509191502e689b1493c66d71d1fbf360b404f..c3c44742f6a2dc1dcc30c1bf602bdf6c9f4ce49c 100644 (file)
@@ -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++;