aboutsummaryrefslogtreecommitdiff
path: root/app/views/oer/addfile/choose_file.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/oer/addfile/choose_file.php')
-rw-r--r--app/views/oer/addfile/choose_file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/oer/addfile/choose_file.php b/app/views/oer/addfile/choose_file.php
index 6c896cf..feb5b0f 100644
--- a/app/views/oer/addfile/choose_file.php
+++ b/app/views/oer/addfile/choose_file.php
@@ -12,7 +12,7 @@ if ($best_nine_tags && count($best_nine_tags) > 0) {
<form class="oer_search"
action="<?= $controller->link_for("oer/market/search") ?>"
method="GET"
- data-searchresults="<?= htmlReady(json_encode($material_data)) ?>"
+ data-searchresults="<?= htmlReady(json_encode($material_data ?? [])) ?>"
data-filteredtag="<?= htmlReady(Request::get("tag")) ?>"
data-filteredcategory="<?= htmlReady(Request::get("category")) ?>"
data-tags="<?= htmlReady(json_encode($tags)) ?>"