Commit eef89c67 authored by Evan Prodromou's avatar Evan Prodromou

Fix blog plugin error to allow deleting a blog post

parent b5c5d8d3
......@@ -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();
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment