Skip to content
Snippets Groups Projects
Commit c5264482 authored by David Siegfried's avatar David Siegfried
Browse files

prevent php8-warnings, closes #3155

Closes #3155

Merge request studip/studip!2131
parent a8e260a8
No related branches found
No related tags found
No related merge requests found
...@@ -132,6 +132,7 @@ class Oer_EndpointsController extends StudipController ...@@ -132,6 +132,7 @@ class Oer_EndpointsController extends StudipController
} }
$output = ['results' => []]; $output = ['results' => []];
if (isset($this->materialien)) {
foreach ($this->materialien as $material) { foreach ($this->materialien as $material) {
$data = []; $data = [];
$data['host'] = [ $data['host'] = [
...@@ -166,6 +167,7 @@ class Oer_EndpointsController extends StudipController ...@@ -166,6 +167,7 @@ class Oer_EndpointsController extends StudipController
} }
$output['results'][] = $data; $output['results'][] = $data;
} }
}
$this->render_json($output); $this->render_json($output);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment