From 5f3010df382c74673fbffa61d167bdc752e30e7d Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Thu, 13 Jan 2011 16:40:30 +0300 Subject: [PATCH] Fixed PHP notice with undefined variable. --- locallib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/locallib.php b/locallib.php index 1f42c6c..f80a08c 100644 --- a/locallib.php +++ b/locallib.php @@ -390,6 +390,7 @@ function print_filter_controls($url, $id, $studentid=0, $sort=NULL, $printselect $link = $url . "?id=$id" . ($sort ? "&sort=$sort" : "") . ($studentid ? "&student=$studentid" : ""); $currentgroup = -1; + $sessiontypeselector = ''; if ($printselector === GROUP_SELECTOR) { $groupmode = groups_get_activity_groupmode($cm); $currentgroup = groups_get_activity_group($cm, true);