- info(L10n::t('Tag removed') . EOL );
- goaway(System::baseUrl() . '/' . $_SESSION['photo_return']);
+ foreach ($tags as $new_tag) {
+ foreach ($old_tags as $index => $old_tag) {
+ if (strcmp($old_tag, $new_tag) == 0) {
+ unset($old_tags[$index]);
+ break;
+ }
+ }
+ }