From 0c4dcda5080afb829b360b1b094f288c17921c26 Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 10 Oct 2013 16:01:53 -0400 Subject: [PATCH] CC-5394 : File Summary Fix need to check if length is set. --- airtime_mvc/application/services/HistoryService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/airtime_mvc/application/services/HistoryService.php b/airtime_mvc/application/services/HistoryService.php index 5566a1acd..4b33ee698 100644 --- a/airtime_mvc/application/services/HistoryService.php +++ b/airtime_mvc/application/services/HistoryService.php @@ -430,8 +430,10 @@ class Application_Service_HistoryService //----------------------------------------------------------------- //processing the results foreach ($rows as &$row) { - $formatter = new LengthFormatter($row['length']); - $row['length'] = $formatter->format(); + if (isset($row[MDATA_KEY_DURATION])) { + $formatter = new LengthFormatter($row[MDATA_KEY_DURATION]); + $row[MDATA_KEY_DURATION] = $formatter->format(); + } } return array(