From 0b844a832277dd655b6aa91453b75d5988142270 Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Wed, 4 Oct 2017 11:47:18 +0800 Subject: [PATCH] MDL-60314 navigation: fix overriding variable value --- lib/navigationlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/navigationlib.php b/lib/navigationlib.php index 280b1191be8..7743f4ab561 100644 --- a/lib/navigationlib.php +++ b/lib/navigationlib.php @@ -2452,8 +2452,8 @@ class global_navigation extends navigation_node { $reporttab = $usercoursenode->add(get_string('activityreports')); - $reports = get_plugin_list_with_function('report', 'extend_navigation_user', 'lib.php'); - foreach ($reports as $reportfunction) { + $reportfunctions = get_plugin_list_with_function('report', 'extend_navigation_user', 'lib.php'); + foreach ($reportfunctions as $reportfunction) { $reportfunction($reporttab, $user, $usercourse); }