Commit 960cf8e7 authored by Carsten  Rose's avatar Carsten Rose
Browse files

AbstractBuildForm.php: templateGroups might deliver an array - fixed problem.

parent ffecbbd3
......@@ -445,9 +445,25 @@ abstract class AbstractBuildForm {
abstract public function getProcessFilter();
/**
* @param array|string $value
*
* @return array|string
* @throws UserFormException
*/
private function processReportSyntax($value) {
if (is_array($value)) {
$new = array();
//might happen for e.g Template Groups
foreach ($value as $item) {
$new[] = $this->processReportSyntax($item);
}
return $new;
}
if (substr($value, 0, 8) == SHEBANG_REPORT) {
if ($this->report === null) {
$this->report = new Report(array(), $this->evaluate, false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment