summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-27 08:16:02 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-03-27 08:16:02 +0000
commit0bacebf1eb56430e0c0013be1604045ca25246ef (patch)
treefa6e24332b918dac039e000da50e61e8ec7b872d /admin
parent664bd9a28aa10eedee3deb82cda9b99b91b51fa0 (diff)
downloadampache-0bacebf1eb56430e0c0013be1604045ca25246ef.tar.gz
ampache-0bacebf1eb56430e0c0013be1604045ca25246ef.tar.bz2
ampache-0bacebf1eb56430e0c0013be1604045ca25246ef.zip
fixed a problem where it would redirect you back to an empty album/artist view
Diffstat (limited to 'admin')
-rw-r--r--admin/flag.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/admin/flag.php b/admin/flag.php
index f3de980a..695d90d0 100644
--- a/admin/flag.php
+++ b/admin/flag.php
@@ -85,13 +85,16 @@ switch ($action) {
/* Now that it's been updated clean old junk entries */
$catalog = new Catalog();
- $catalog->clean_single_song($old_song);
+ $cleaned = $catalog->clean_single_song($old_song);
/* Add a tagging record of this so we can fix the file */
if ($_REQUEST['flag']) {
$flag = new Flag();
$flag->add($song->id,'song','retag','Edited Song, auto-tag');
}
+
+ if (isset($cleaned['artist']) || isset($cleaned['album'])) { $_SESSION['source'] = conf('web_path') . '/index.php'; }
+
show_confirmation(_('Song Updated'),_('The requested song has been updated'),$_SESSION['source']);
break;
case 'reject_flag':