]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix blog plugin error to allow deleting a blog post
authorEvan Prodromou <evan@status.net>
Wed, 24 Aug 2011 19:57:45 +0000 (15:57 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 24 Aug 2011 19:57:45 +0000 (15:57 -0400)
plugins/Blog/BlogPlugin.php

index 0f1c34bff1832e9dcf324c5b42ca790f5520a7c0..eb1f5833c49eaf754692b935e7fbaf0b5b58a4ec 100644 (file)
@@ -194,7 +194,7 @@ class BlogPlugin extends MicroAppPlugin
     {
         if ($notice->object_type == Blog_entry::TYPE) {
             $entry = Blog_entry::fromNotice($notice);
-            if (exists($entry)) {
+            if (!empty($entry)) {
                 $entry->delete();
             }
         }