Skip to content
Snippets Groups Projects
Commit 917816c0 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #1811

Closes #1811

Merge request studip/studip!1192
parent 17ed9b94
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,9 @@ if ($best_nine_tags && count($best_nine_tags) > 0) {
];
}
}
$material_data = [];
$material_data = false;
if (!empty($materialien)) {
$material_data = [];
foreach ($materialien as $material) {
$data = $material->toRawArray();
......
......@@ -199,7 +199,7 @@ const OER = {
},
mounted: function () {
this.results = $(this.$el).data('searchresults');
if (this.results !== null) {
if (this.results !== false) {
$("#new_ones").hide();
}
if ($(this.$el).data('filteredcategory')) {
......
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