diff options
| author | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-07-08 15:50:03 +0200 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+github@gmail.com> | 2024-07-08 16:24:10 +0200 |
| commit | 58ec440501ee821931706fd12dbd9331b0eaca50 (patch) | |
| tree | 26fbd06d9f3775b16a5f01b549b22a97a454258c /lib/models | |
| parent | 471197f7abc27b0fdc65e453587a74906922f9d5 (diff) | |
convert oersearch to sfc, re #4302tic-4302
Diffstat (limited to 'lib/models')
| -rw-r--r-- | lib/models/OERMaterial.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/models/OERMaterial.php b/lib/models/OERMaterial.php index 224c860..2048457 100644 --- a/lib/models/OERMaterial.php +++ b/lib/models/OERMaterial.php @@ -257,6 +257,9 @@ class OERMaterial extends SimpleORMap public function setTopics($tags) { + $tags = array_map('trim', $tags); + $tags = array_filter($tags); + $statement = DBManager::get()->prepare(" DELETE FROM oer_tags_material WHERE material_id = :material_id |
