From 4d47bf7e715f4d6c221c23b28905ca6ba3e8d079 Mon Sep 17 00:00:00 2001
From: chapel <jacob.chapel@gmail.com>
Date: Sat, 19 Nov 2011 18:56:09 -0800
Subject: [PATCH] Send none if a course variable is missing

---
 models.js | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/models.js b/models.js
index 87d427e..15b8125 100644
--- a/models.js
+++ b/models.js
@@ -186,10 +186,10 @@ CourseSchema.virtual( 'sanitized' ).get(function() {
   var course = {
     _id: this._id,
     name: this.name,
-    number: this.number,
-    description: this.description,
-    subject: this.subject,
-    department: this.department
+    number: this.number || 'None',
+    description: this.description || 'None',
+    subject: this.subject || 'None',
+    department: this.department || 'None'
   }
 
   return course;
-- 
2.25.1