mirror of
https://github.com/moodle/moodle.git
synced 2025-02-18 23:05:30 +01:00
Problem with reference parameters solved under PHP 4.x. Bug 4102.
(http://moodle.org/bugs/bug.php?op=show&bugid=4102)
This commit is contained in:
parent
166eb40cac
commit
406e4672f7
@ -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++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user