Commit 8c14944d authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixed problem with resultset in 'altsql'

parent 9b74e7cd
Pipeline #1168 passed with stage
in 1 minute and 34 seconds
......@@ -571,12 +571,15 @@ class Report {
$sql = $this->variables->doVariables($this->frArray[$fullLevel . "." . TOKEN_ALT_SQL]);
if (!empty($sql)) {
$result = $this->db->sql($sql, ROW_KEYS, array(), '', $keys, $stat);
foreach ($result as $row) {
$rowIndex = 0;
$contentLevel .= $this->collectRow($row, $keys, $fullLevel, $rowIndex);
if(is_array($result)) {
foreach ($result as $row) {
$rowIndex = 0;
$contentLevel .= $this->collectRow($row, $keys, $fullLevel, $rowIndex);
}
}
}
}
$contentLevel .= $this->variables->doVariables($this->frArray[$fullLevel . "." . TOKEN_STAIL]);
$token = $this->frArray[$fullLevel . "." . TOKEN_CONTENT];
......
Supports Markdown
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