Skip to content
Snippets Groups Projects
Commit ce811ef3 authored by Yorick Reum's avatar Yorick Reum
Browse files

code style

parent a71bddbf
Branches
Tags
No related merge requests found
# Used for simulating cron during development
development.php
.idea/
......@@ -241,7 +241,10 @@ class workflow_manager {
}
}
if ($action === ACTION_WORKFLOW_DELETE) {
if (self::get_workflow($workflowid) && self::is_removable($workflowid) && confirm_sesskey()) { // check workflow wasn't already deleted, in case someone refreshes the page
// Check workflow wasn't already deleted, in case someone refreshes the page.
if (self::get_workflow($workflowid) &&
self::is_removable($workflowid) &&
confirm_sesskey()) {
self::remove($workflowid);
} else {
echo $OUTPUT->notification(get_string('workflow_not_removeable', 'tool_lifecycle')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment