[blocks] 'delete' param isn't required
This commit is contained in:
parent
4088261bcb
commit
fc6f95de8f
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class Blocks extends Extension
|
||||||
$page->set_redirect(make_link("blocks/list"));
|
$page->set_redirect(make_link("blocks/list"));
|
||||||
}
|
}
|
||||||
if ($event->page_matches("blocks/update", method: "POST", permission: Permissions::MANAGE_BLOCKS)) {
|
if ($event->page_matches("blocks/update", method: "POST", permission: Permissions::MANAGE_BLOCKS)) {
|
||||||
if (!empty($event->req_POST('delete'))) {
|
if (!is_null($event->get_POST('delete'))) {
|
||||||
$database->execute("
|
$database->execute("
|
||||||
DELETE FROM blocks
|
DELETE FROM blocks
|
||||||
WHERE id=:id
|
WHERE id=:id
|
||||||
|
|
Reference in a new issue