From 088fcf90ca941a06ac76a5faac8ca85f6bae63f4 Mon Sep 17 00:00:00 2001 From: Jetha Chan Date: Wed, 5 Nov 2014 14:37:33 +0800 Subject: [PATCH] MDL-48067 user_menu: allow empty customusermenuitems setting --- user/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/user/lib.php b/user/lib.php index 93832e55f4c..5fac196bb25 100644 --- 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);