diff --git a/airtime_mvc/application/services/PublishService.php b/airtime_mvc/application/services/PublishService.php index f883c5d5d..7e166451f 100644 --- a/airtime_mvc/application/services/PublishService.php +++ b/airtime_mvc/application/services/PublishService.php @@ -78,11 +78,12 @@ class Application_Service_PublishService { * @param int $fileId the ID of the file to check * * @return int 1 if the file has been published to SoundCloud, - * 0 if the file has yet to be published, or -1 if the - * file is in a pending state + * 0 if the file has yet to be published, + * -1 if the file is in a pending state */ private static function getSoundCloudPublishStatus($fileId) { $soundcloudService = new Application_Service_SoundcloudService(); + if (!$soundcloudService->hasAccessToken()) { return 2; } return ($soundcloudService->referenceExists($fileId)); } diff --git a/airtime_mvc/application/views/scripts/library/publish-dialog.phtml b/airtime_mvc/application/views/scripts/library/publish-dialog.phtml index 9c303b301..a297cc425 100644 --- a/airtime_mvc/application/views/scripts/library/publish-dialog.phtml +++ b/airtime_mvc/application/views/scripts/library/publish-dialog.phtml @@ -19,8 +19,9 @@