summaryrefslogtreecommitdiffstats
path: root/modules/plugins/Lastfm.plugin.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/plugins/Lastfm.plugin.php')
-rw-r--r--modules/plugins/Lastfm.plugin.php6
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;
}