diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index bafbb00ea..57b4efddd 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -372,7 +372,7 @@ class ApiController extends Zend_Controller_Action $webStream = new Application_Model_Webstream($stream_id); var_dump($webStream); $now = new DateTime("now", new DateTimeZone("UTC")); - $webStream->setLastPlayed($now); + $webStream->setLastPlayed($now); } } } catch (Exception $e) { diff --git a/airtime_mvc/application/models/Schedule.php b/airtime_mvc/application/models/Schedule.php index 436d81c78..fb8ff7020 100644 --- a/airtime_mvc/application/models/Schedule.php +++ b/airtime_mvc/application/models/Schedule.php @@ -1175,10 +1175,10 @@ SQL; return $scheduledItem->getDbFileId(); } - public static function GetStreamId($p_scheduleId) - { - $scheduledItem = CcScheduleQuery::create()->findPK($p_scheduleId); - - return $scheduledItem->getDbStreamId(); + public static function GetStreamId($p_scheduleId) + { + $scheduledItem = CcScheduleQuery::create()->findPK($p_scheduleId); + + return $scheduledItem->getDbStreamId(); } } diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index af14d4af0..e88184a3d 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -689,9 +689,9 @@ class Application_Model_StoredFile $fileSelect[] = $key; $streamSelect[] = "NULL::NUMERIC AS ".$key; } elseif ($key === "lptime") { - $plSelect[] = "NULL::TIMESTAMP AS ".$key; - $blSelect[] = "NULL::TIMESTAMP AS ".$key; - $fileSelect[] = $key; + $plSelect[] = "NULL::TIMESTAMP AS ".$key; + $blSelect[] = "NULL::TIMESTAMP AS ".$key; + $fileSelect[] = $key; $streamSelect[] = $key; } //same columns in each table. diff --git a/airtime_mvc/application/models/Webstream.php b/airtime_mvc/application/models/Webstream.php index 87a9157cb..9b054fa04 100644 --- a/airtime_mvc/application/models/Webstream.php +++ b/airtime_mvc/application/models/Webstream.php @@ -221,7 +221,7 @@ class Application_Model_Webstream implements Application_Model_LibraryEditable } - public function setLastPlayed($timestamp) + public function setLastPlayed($timestamp) { $this->webstream->setDbLPtime($timestamp); $this->webstream->save();