Ensure we delete the element from the DB

This commit is contained in:
Mark Nelson 2015-03-13 22:15:40 -07:00
parent 25171d1703
commit ed03f0313d

View file

@ -322,6 +322,9 @@ function customcert_delete_page($pageid) {
// Get an instance of the element class.
if ($e = customcert_get_element_instance($element)) {
$e->delete_element();
} else {
// The plugin files are missing, so just remove the entry from the DB.
$DB->delete_records('customcert_elements', array('id' => $element->id));
}
}
}