Fix blog plugin error to allow deleting a blog post

This commit is contained in:
Evan Prodromou 2011-08-24 15:57:45 -04:00
parent b5c5d8d393
commit eef89c6712

View 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();
}
}