Merge pull request #67 from radiorabe/feature/fix-saving-prefs

Problem: sad tape error when saving prefs w/o soundcloud config
This commit is contained in:
Robb 2017-03-12 15:04:04 -04:00 committed by GitHub
commit c1251b4c1b
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class PreferenceController extends Zend_Controller_Action
Application_Model_Preference::setTuneinPartnerId($values["tunein_partner_id"]);
// SoundCloud Preferences
if (Billing::isStationPodcastAllowed()) {
if (Billing::isStationPodcastAllowed() && array_key_exists('SoundCloudLicense', $values)) {
Application_Model_Preference::setDefaultSoundCloudLicenseType($values["SoundCloudLicense"]);
Application_Model_Preference::setDefaultSoundCloudSharingType($values["SoundCloudSharing"]);
}