1
0
Fork 0
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:
Karl 'vollmerk' Vollmer 2007-09-09 06:13:32 +00:00
parent f4ad61dccf
commit b3950d0c94
10 changed files with 68 additions and 26 deletions

View file

@ -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;
}