1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

fix for the httpq player so that it works with songs that have spaces in the name

This commit is contained in:
Karl 'vollmerk' Vollmer 2007-01-11 16:01:29 +00:00
parent 46d87d6bf4
commit dced24f2c5
2 changed files with 3 additions and 3 deletions

View file

@ -213,7 +213,7 @@ class Album {
/* If it's not set */
if (empty($config_value)) {
// They don't want art!
return false;
return array();
}
elseif (!is_array($config_value)) {
$config_value = array($config_value);

View file

@ -54,8 +54,8 @@ class HttpQPlayer {
*/
function add($name, $url) {
$args['name'] = $name;
$args['url'] = str_replace("&","%26",$url);
$args['name'] = urlencode($name);
$args['url'] = urlencode($url);
$results = $this->sendCommand('playurl', $args);