From 3ba3df07f858474f979634db9fa1923a33640016 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Mon, 17 Sep 2012 17:39:41 -0400 Subject: [PATCH] better logging --- .../application/models/ShowBuilder.php | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/airtime_mvc/application/models/ShowBuilder.php b/airtime_mvc/application/models/ShowBuilder.php index b6ecfd1fe..d708681ca 100644 --- a/airtime_mvc/application/models/ShowBuilder.php +++ b/airtime_mvc/application/models/ShowBuilder.php @@ -189,10 +189,13 @@ class Application_Model_ShowBuilder $row["record"] = true; if (Application_Model_Preference::GetUploadToSoundcloudOption()) { - $file = Application_Model_StoredFile::Recall($p_item["si_file_id"]); + Logging::info('$p_item contains:'); + Logging::info($p_item); + $file = Application_Model_StoredFile::Recall( + $p_item['si_file_id']); if (isset($file)) { $sid = $file->getSoundCloudId(); - $row["soundcloud_id"] = $sid; + $row['soundcloud_id'] = $sid; } } } @@ -204,18 +207,18 @@ class Application_Model_ShowBuilder $this->currentShow = false; } - $row["header"] = true; - $row["starts"] = $showStartDT->format("Y-m-d H:i"); + $row["header"] = true; + $row["starts"] = $showStartDT->format("Y-m-d H:i"); $row["startDate"] = $showStartDT->format("Y-m-d"); $row["startTime"] = $showStartDT->format("H:i"); - $row["refresh"] = floatval($showStartDT->format("U.u")) - $this->epoch_now; - $row["ends"] = $showEndDT->format("Y-m-d H:i"); - $row["endDate"] = $showEndDT->format("Y-m-d"); - $row["endTime"] = $showEndDT->format("H:i"); - $row["duration"] = floatval($showEndDT->format("U.u")) - floatval($showStartDT->format("U.u")); - $row["title"] = $p_item["show_name"]; - $row["instance"] = intval($p_item["si_id"]); - $row["image"] = ''; + $row["refresh"] = floatval($showStartDT->format("U.u")) - $this->epoch_now; + $row["ends"] = $showEndDT->format("Y-m-d H:i"); + $row["endDate"] = $showEndDT->format("Y-m-d"); + $row["endTime"] = $showEndDT->format("H:i"); + $row["duration"] = floatval($showEndDT->format("U.u")) - floatval($showStartDT->format("U.u")); + $row["title"] = $p_item["show_name"]; + $row["instance"] = intval($p_item["si_id"]); + $row["image"] = ''; $this->getScheduledStatus($startsEpoch, $endsEpoch, $row);