better check fro repair parameter

This commit is contained in:
Uwe Steinmann 2020-08-31 13:18:05 +02:00
parent 9e5224a661
commit 10ecff6142

View File

@ -102,7 +102,7 @@ $processwithoutusergroup = array();
foreach(array('review', 'approval', 'receipt', 'revision') as $process) {
foreach(array('user', 'group') as $ug) {
if(!isset($_GET['action']) || $_GET['action'] == 'list'.ucfirst($process).'Without'.ucfirst($ug)) {
if($_GET['repair'])
if(isset($_GET['repair']) && $_GET['repair'])
$dms->removeProcessWithoutUserGroup($process, $ug, isset($_GET['required']) ? $_GET['required'] : '');
$processwithoutusergroup[$process][$ug] = $dms->getProcessWithoutUserGroup($process, $ug);
}