From ccf2cff2bafb18dcfe6d5caeab8bd78cf6816af3 Mon Sep 17 00:00:00 2001 From: Victor Shnayder Date: Tue, 21 Aug 2012 13:04:33 -0400 Subject: [PATCH] bugfix: set errored_courses in default case --- common/djangoapps/student/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index f36936318e..66a860ab15 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -143,6 +143,7 @@ def dashboard(request): # Global staff can see what courses errored on their dashboard staff_access = False + errored_courses = [] if has_access(user, 'global', 'staff'): # Show any courses that errored on load staff_access = True