diff --git a/application/modules/ucc/controllers/ReportsController.php b/application/modules/ucc/controllers/ReportsController.php index 3ca87dc744f8acc51445ae69a3fa77f16ffb0b9e..4acebf82d6567be312859da8724255c72581eed0 100644 --- a/application/modules/ucc/controllers/ReportsController.php +++ b/application/modules/ucc/controllers/ReportsController.php @@ -152,6 +152,11 @@ class Ucc_ReportsController extends App_Controller_Action $time = $aHistory->getTime(); $voteResult = $aHistory->getDecision(); } + + // If we couldn't find a time in the history, this $approvalAction hasn't happened yet, so continue on. + if (!$time) { + continue; + } if (!$originalCourse) { $originalCourse = $currentCourse; @@ -163,6 +168,7 @@ class Ucc_ReportsController extends App_Controller_Action $voteResult = $approvalAction->tallyVotes($votes); } + $data[] = new Unl_Model_Array(array( 'time' => $time->getTimestamp(), 'college' => $originalCourse->getCollege(),