From eef89c6712c84d1839943a1b7753e4317b2fc4c4 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 24 Aug 2011 15:57:45 -0400 Subject: [PATCH] Fix blog plugin error to allow deleting a blog post --- plugins/Blog/BlogPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } } -- 2.39.5