diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-27 08:16:02 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-03-27 08:16:02 +0000 |
commit | 0bacebf1eb56430e0c0013be1604045ca25246ef (patch) | |
tree | fa6e24332b918dac039e000da50e61e8ec7b872d /admin | |
parent | 664bd9a28aa10eedee3deb82cda9b99b91b51fa0 (diff) | |
download | ampache-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.php | 5 |
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': |