CC-2105: SoundCloud password should be protected in Configure->Preferences UI

-A blank password field won't overwrite the saved database value anymore
This commit is contained in:
martin 2011-03-31 17:30:50 -04:00
parent f74b0a562e
commit b4d3786e41
1 changed files with 2 additions and 1 deletions

View File

@ -117,7 +117,8 @@ class Application_Model_Preference
}
public static function SetSoundCloudPassword($password) {
Application_Model_Preference::SetValue("soundcloud_password", $password);
if (strlen($password) > 0)
Application_Model_Preference::SetValue("soundcloud_password", $password);
}
public static function GetSoundCloudPassword() {