diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-18 05:52:06 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-10-18 05:52:06 +0000 |
commit | f64a2f4d00b801408b558917bae8f6a428931fe7 (patch) | |
tree | 3640a6ac0a94c00d021835a6cf94d83ec7377ccb /modules/plugins | |
parent | 15c56f21f2a74c8d25e8d74b2cc4b4020e9db74f (diff) | |
download | ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.gz ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.tar.bz2 ampache-f64a2f4d00b801408b558917bae8f6a428931fe7.zip |
fixed admin prefs, flushed out localplay stuff, tweaked filters on browse
Diffstat (limited to 'modules/plugins')
-rw-r--r-- | modules/plugins/Lastfm.plugin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php index 0d9c4b18..0804bb26 100644 --- a/modules/plugins/Lastfm.plugin.php +++ b/modules/plugins/Lastfm.plugin.php @@ -101,6 +101,9 @@ class AmpacheLastfm { debug_event('LastFM','Song less then 30 seconds not queueing','3'); return false; } + + // Make sure there's actually a username and password before we keep going + if (!$this->username || !$this->password) { return false; } // Create our scrobbler with everything this time and then queue it $scrobbler = new scrobbler($this->username,$this->password,$this->hostname,$this->port,$this->path,$this->challenge); |