Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d3c518
)
MDL-48067 user_menu: allow empty customusermenuitems setting
author
Jetha Chan
<jetha@moodle.com>
Wed, 5 Nov 2014 06:37:33 +0000
(14:37 +0800)
committer
Jetha Chan
<jetha@moodle.com>
Wed, 5 Nov 2014 06:37:33 +0000
(14:37 +0800)
user/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/user/lib.php
b/user/lib.php
index
93832e5
..
5fac196
100644
(file)
--- a/
user/lib.php
+++ b/
user/lib.php
@@
-630,6
+630,7
@@
function user_convert_text_to_menu_items($text, $page) {
$lastchild = null;
$lastdepth = null;
$lastsort = 0;
+ $children = array();
foreach ($lines as $line) {
$line = trim($line);
$bits = explode('|', $line, 3);