diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-13 21:34:56 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-01-13 21:34:56 +0000 |
commit | 7e154abae9113055bb935e7b95c55119bfaff208 (patch) | |
tree | 97f885a6fc2ad55cc97a5f155dbc243605aac824 /server | |
parent | cba4a991c0f554c2b5e3dec7e882476ff73760bb (diff) | |
download | ampache-7e154abae9113055bb935e7b95c55119bfaff208.tar.gz ampache-7e154abae9113055bb935e7b95c55119bfaff208.tar.bz2 ampache-7e154abae9113055bb935e7b95c55119bfaff208.zip |
- Fixed search by rating (Thx alex2008)
- Fixed no result return on random methods
- Added mime,language & lyrics to catalog updating functions
Diffstat (limited to 'server')
-rw-r--r-- | server/random.ajax.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/random.ajax.php b/server/random.ajax.php index 269a6ec6..acc42539 100644 --- a/server/random.ajax.php +++ b/server/random.ajax.php @@ -29,7 +29,7 @@ switch ($_REQUEST['action']) { $album_id = Random::album(); // If we don't get anything stop - if (!$album_id) { break; } + if (!$album_id) { $results['rfc3514'] = '0x1'; break; } $album = new Album($album_id); $songs = $album->get_songs(); @@ -42,7 +42,7 @@ switch ($_REQUEST['action']) { $artist_id = Random::artist(); // If we don't get anything stop - if (!$artist_id) { break; } + if (!$artist_id) { $results['rfc3514'] = '0x1'; break; } $artist = new Artist($artist_id); $songs = $artist->get_songs(); @@ -55,7 +55,7 @@ switch ($_REQUEST['action']) { $playlist_id = Random::playlist(); // If we don't get any results stop right here! - if (!$playlist_id) { break; } + if (!$playlist_id) { $results['rfc3514'] = '0x1'; break; } $playlist = new Playlist($playlist_id); $items = $playlist->get_items(); |