mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 02:39:47 +02:00
new db update, moved prefs around removed useless one and fixed some defaults, also fixed some potential issues with lastfm
This commit is contained in:
parent
f4ad61dccf
commit
b3950d0c94
10 changed files with 68 additions and 26 deletions
|
@ -181,10 +181,16 @@ class scrobbler {
|
|||
$i++;
|
||||
}
|
||||
|
||||
$as_socket = @fsockopen($this->submit_host, $this->submit_port, $errno, $errstr, 5);
|
||||
if (!trim($this->submit_host) || !$this->submit_port) {
|
||||
$this->reset_handshake = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
$as_socket = @fsockopen($this->submit_host, intval($this->submit_port), $errno, $errstr, 5);
|
||||
|
||||
if(!$as_socket) {
|
||||
$this->error_msg = $errstr;
|
||||
$this->reset_handshake = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue