]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/remove.pm
Merge branch 'master' of git://git.ikiwiki.info
[git.ikiwiki.info.git] / IkiWiki / Plugin / remove.pm
index a58f87fb3b045e7876f4a6912c987a1774789086..14ac01c9bcfc390f370f1a8fca74c3b51d7f0baa 100644 (file)
@@ -120,7 +120,7 @@ sub removal_confirm ($$@) {
                
        # Special case for unsaved attachments.
        foreach my $page (@pages) {
-               if (IkiWiki::Plugin::attachment->can("is_held_attachment")) {
+               if ($attachment && IkiWiki::Plugin::attachment->can("is_held_attachment")) {
                        my $f=IkiWiki::Plugin::attachment::is_held_attachment($page);
                        if (defined $f) {
                                require IkiWiki::Render;