Skip to content
Snippets Groups Projects
Commit 2b6b1732 authored by Markus Guenther's avatar Markus Guenther
Browse files

[BUGFIX] Prevent the exception when records key is not set

parent de7992d4
No related branches found
No related tags found
No related merge requests found
......@@ -80,7 +80,8 @@ abstract class AbstractArrayView extends AbstractView {
*/
public function render() {
$data = array();
foreach ($this->variables['records'] as $record) {
$records = (isset($this->variables['records']) ? $this->variables['records'] : []);
foreach ($records as $record) {
$data[] = $this->getPlainRecord($record);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment