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:
commit
c1251b4c1b
|
@ -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"]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue