From fcfcd69d367d4a86f7ae4d781dd4f09a8611310c Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Mon, 17 Dec 2007 16:55:46 +0000
Subject: [PATCH] Fix in bulletin preview when proposed course has 0 or 3
 termsOffered listed and original has 1 or 2

---
 application/library/View/Helper/BulletinEntryDiff.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/application/library/View/Helper/BulletinEntryDiff.php b/application/library/View/Helper/BulletinEntryDiff.php
index 07af5db6..44effc04 100644
--- a/application/library/View/Helper/BulletinEntryDiff.php
+++ b/application/library/View/Helper/BulletinEntryDiff.php
@@ -215,6 +215,8 @@ class Application_View_Helper_BulletinEntryDiff
         if(count($proposedCourse->termsOffered) > 0 && count($proposedCourse->termsOffered) < 3) {
             $termsOffered = implode(', ', $proposedCourse->termsOffered);
             $termsOffered = strtr($termsOffered, array('Fall' => 'I', 'Spring' => 'II', 'Summer' => 'III'));
+        } else {
+            $termsOffered = '';
         }
 
         if(count($creditListings) > 0) {
-- 
GitLab