diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 11:00:57 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-10 11:00:57 +0000 |
commit | 08598b34a8621838ce64f4b8a3f2164072c3be1b (patch) | |
tree | 825a9083a413fa5da3491b6da735c6ad3cdb2c41 /modules | |
parent | 2f5c09b55c9f0f4149d2ae3ff41678807dab322a (diff) | |
download | ampache-08598b34a8621838ce64f4b8a3f2164072c3be1b.tar.gz ampache-08598b34a8621838ce64f4b8a3f2164072c3be1b.tar.bz2 ampache-08598b34a8621838ce64f4b8a3f2164072c3be1b.zip |
some rather major bug fixes, corrected a preference setting issue, as well as a preference update issue, fixed infinite plugin installing for fun and profit, also fixed updating the config file not regenerating the version correctly and the user creation allowing users with blank password, which does not work at the login
Diffstat (limited to 'modules')
-rw-r--r-- | modules/plugins/Lastfm.plugin.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php index 95acbf79..2cb6ab69 100644 --- a/modules/plugins/Lastfm.plugin.php +++ b/modules/plugins/Lastfm.plugin.php @@ -54,6 +54,9 @@ class AmpacheLastfm { */ public function install() { + // Check and see if it's already installed (they've just hit refresh, those dorks) + if (Preference::exists('lastfm_user')) { return false; } + Preference::insert('lastfm_user','Last.FM Username','','25','string','plugins'); Preference::insert('lastfm_pass','Last.FM Password','','25','string','plugins'); Preference::insert('lastfm_port','Last.FM Submit Port','','25','string','internal'); @@ -61,6 +64,8 @@ class AmpacheLastfm { Preference::insert('lastfm_url','Last.FM Submit URL','','25','string','internal'); Preference::insert('lastfm_challenge','Last.FM Submit Challenge','','25','string','internal'); + return true; + } // install /** |