diff --git a/admin/webservice/service_functions.php b/admin/webservice/service_functions.php index e37c644e052..d5e40ea9a94 100644 --- a/admin/webservice/service_functions.php +++ b/admin/webservice/service_functions.php @@ -55,8 +55,7 @@ if ($action === 'delete' and confirm_sesskey() and $service and empty($service-> $DB->delete_records('external_services_functions', array('externalserviceid'=>$service->id, 'functionname'=>$function->name)); redirect($thisurl); -} -else if ($action === 'add') { +} else if ($action === 'add') { if (optional_param('save', 0, PARAM_ACTION)) {