Skip to content

Commit

Permalink
MDL-48067 user_menu: allow empty customusermenuitems setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jetha Chan committed Nov 5, 2014
1 parent 8d3c518 commit 088fcf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions user/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 088fcf9

Please sign in to comment.