From: Evan Prodromou Date: Wed, 24 Aug 2011 19:57:45 +0000 (-0400) Subject: Fix blog plugin error to allow deleting a blog post X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=eef89c6712c84d1839943a1b7753e4317b2fc4c4;p=quix0rs-gnu-social.git Fix blog plugin error to allow deleting a blog post --- diff --git a/plugins/Blog/BlogPlugin.php b/plugins/Blog/BlogPlugin.php index 0f1c34bff1..eb1f5833c4 100644 --- a/plugins/Blog/BlogPlugin.php +++ b/plugins/Blog/BlogPlugin.php @@ -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(); } }