mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
show parameters of task if they are an array
This commit is contained in:
parent
b71467b8c8
commit
c44aaae446
|
@ -129,7 +129,18 @@ foreach($tasks as $task) {
|
||||||
if($params = $task->getParameter()) {
|
if($params = $task->getParameter()) {
|
||||||
foreach($params as $key=>$value) {
|
foreach($params as $key=>$value) {
|
||||||
$p = $taskobj->getAdditionalParamByName($key);
|
$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;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user