diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-25 15:45:39 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-25 15:45:39 +0000 |
commit | 8442e4c7dbb9bad0386489418567c667e7b5ed91 (patch) | |
tree | 630eb98e7d83287912600adc06e457cd510c043f /modules/plugins | |
parent | b89350528c02ff220c2cf67ea590fc667823a607 (diff) | |
download | ampache-8442e4c7dbb9bad0386489418567c667e7b5ed91.tar.gz ampache-8442e4c7dbb9bad0386489418567c667e7b5ed91.tar.bz2 ampache-8442e4c7dbb9bad0386489418567c667e7b5ed91.zip |
dont even try to do handshake if password or username have a strlen of 0
Diffstat (limited to 'modules/plugins')
-rw-r--r-- | modules/plugins/Lastfm.plugin.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/plugins/Lastfm.plugin.php b/modules/plugins/Lastfm.plugin.php index 0804bb26..6e4b2ab4 100644 --- a/modules/plugins/Lastfm.plugin.php +++ b/modules/plugins/Lastfm.plugin.php @@ -172,16 +172,18 @@ class AmpacheLastfm { */ public function load($data,$user_id) { - if (isset($data['lastfm_user'])) { + if (strlen($data['lastfm_user'])) { $this->username = $data['lastfm_user']; } else { + debug_event('LastFM','No Username, not scrobbling','3'); return false; } - if (isset($data['lastfm_pass'])) { + if (strlen($data['lastfm_pass'])) { $this->password = $data['lastfm_pass']; } else { + debug_event('LastFM','No Password, not scrobbling','3'); return false; } |