Ensure we delete the element from the DB
This commit is contained in:
parent
25171d1703
commit
ed03f0313d
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue