From b4d3786e41bf99be3aa7480c4945a081361e417f Mon Sep 17 00:00:00 2001 From: martin Date: Thu, 31 Mar 2011 17:30:50 -0400 Subject: [PATCH] CC-2105: SoundCloud password should be protected in Configure->Preferences UI -A blank password field won't overwrite the saved database value anymore --- application/models/Preference.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Preference.php b/application/models/Preference.php index 9efd2fd10..b234a36b9 100644 --- a/application/models/Preference.php +++ b/application/models/Preference.php @@ -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() {