mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-48067 user_menu: allow empty customusermenuitems setting
This commit is contained in:
parent
8d3c518bd5
commit
088fcf90ca
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user