From 406e4672f7eb4c656830eaed7fef787b14d9664b Mon Sep 17 00:00:00 2001 From: stronk7 Date: Wed, 21 Sep 2005 10:27:04 +0000 Subject: [PATCH] Problem with reference parameters solved under PHP 4.x. Bug 4102. (http://moodle.org/bugs/bug.php?op=show&bugid=4102) --- mod/resource/type/ims/deploy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/resource/type/ims/deploy.php b/mod/resource/type/ims/deploy.php index d017230ea61..09e4cd08e85 100644 --- a/mod/resource/type/ims/deploy.php +++ b/mod/resource/type/ims/deploy.php @@ -226,7 +226,7 @@ /*** This function gets the xmlized representation of the items * and returns an array of items, ordered, with level and info */ - function ims_process_items($items, $level = 1, &$id = 1, $parent = 0) { + function ims_process_items($items, $level = 1, $id = 1, $parent = 0) { global $CFG; $itemmap = array(); @@ -264,6 +264,8 @@ foreach ($subitemmap as $subitem) { /// Add the subitem to the main items array $itemmap[$subitem->id] = $subitem; + /// Counters go up + $id++; } } }