Merge branch 'MDL-48067-master' of git://github.com/jethac/moodle

This commit is contained in:
Dan Poltawski 2014-11-05 10:15:41 +00:00
commit fb3e9ea25d

View File

@ -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);