do not remove from process when none is checked

This commit is contained in:
Uwe Steinmann 2017-07-31 14:16:45 +02:00
parent c6a69f399b
commit f307658290

View File

@ -203,6 +203,10 @@ else if ($action == "removefromprocesses") {
}
if(isset($_POST["status"]) && is_array($_POST["status"]) && $_POST["status"]) {
if(!isset($_POST["status"]["review"]))
$_POST["status"]["review"] = array();
if(!isset($_POST["status"]["approval"]))
$_POST["status"]["approval"] = array();
if (!$userToRemove->removeFromProcesses($user, $_POST['status'])) {
UI::exitError(getMLText("admin_tools"),getMLText("error_occured"));
}