show parameters of task if they are an array

This commit is contained in:
Uwe Steinmann 2023-04-06 12:13:47 +02:00
parent b71467b8c8
commit c44aaae446

View File

@ -129,7 +129,18 @@ foreach($tasks as $task) {
if($params = $task->getParameter()) {
foreach($params as $key=>$value) {
$p = $taskobj->getAdditionalParamByName($key);
echo " ".$key.": ".($p['type'] == 'password' ? '********' : $value)."\n";
echo " ".$key.": ";
switch($p['type']) {
case 'password':
echo '********';
break;
default:
if(is_array($value))
echo implode(', ', $value);
else
echo $value;
}
echo PHP_EOL;
}
}
break;