From f8dc85b6f8faedd10c08b7419afcde6206d489e6 Mon Sep 17 00:00:00 2001
From: Victor Shnayder <victor@edx.org>
Date: Tue, 20 Nov 2012 10:28:47 -0500
Subject: [PATCH] oops.  used wrong variable name.

---
 common/djangoapps/student/views.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py
index 84ec3848f52..44877ef597f 100644
--- a/common/djangoapps/student/views.py
+++ b/common/djangoapps/student/views.py
@@ -184,7 +184,7 @@ def _cert_info(user, course, cert_status):
         if 'download_url' not in cert_status:
             log.warning("User %s has a downloadable cert for %s, but no download url",
                         user.username, course.id)
-            return default_status
+            return default_info
         else:
             d['download_url'] = cert_status['download_url']
 
@@ -193,7 +193,7 @@ def _cert_info(user, course, cert_status):
             # Note: as of 11/20/2012, we know there are students in this state-- cs169.1x,
             # who need to be regraded (we weren't tracking 'notpassing' at first).
             # We can add a log.warning here once we think it shouldn't happen.
-            return default_status
+            return default_info
         else:
             d['grade'] = cert_status['grade']
 
-- 
GitLab