diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 21:07:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-09-09 21:07:45 +0000 |
commit | b1b7998a0f9a6438725fb574e63e27859a6bd2e6 (patch) | |
tree | 36da3f5548f891dbaee3f626bfd2be7457cde967 /admin | |
parent | d6b68f501f8d378ce2ecabb2f9f423ee234f8ab5 (diff) | |
download | ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.tar.gz ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.tar.bz2 ampache-b1b7998a0f9a6438725fb574e63e27859a6bd2e6.zip |
few minor bug fixes, and some more tweaks for localplay
Diffstat (limited to 'admin')
-rw-r--r-- | admin/catalog.php | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/admin/catalog.php b/admin/catalog.php index 64097bc0..cef87cde 100644 --- a/admin/catalog.php +++ b/admin/catalog.php @@ -241,9 +241,14 @@ switch ($_REQUEST['action']) { require_once Config::get('prefix') . '/templates/show_edit_catalog.inc.php'; break; case 'gather_album_art': - $catalogs = Catalog::get_catalogs(); - foreach ($catalogs as $catalog) { - $catalog_id = $catalog->id; + ob_end_flush(); + if (!$_REQUEST['catalog_id']) { + $catalogs = Catalog::get_catalogs(); + } + + // Itterate throught the catalogs and gather as needed + foreach ($catalogs as $catalog_id) { + $catalog = new Catalog($catalog_id); require Config::get('prefix') . '/templates/show_gather_art.inc.php'; flush(); $catalog->get_album_art('',1); |