diff --git a/lib/classes/forms/NewsRangesInput.php b/lib/classes/forms/NewsRangesInput.php
index 18d3170cef20106ee9a15af477ddf2d5d8814d67..212cfa6f4f1f591ca4fc2215c16008a746714137 100644
--- a/lib/classes/forms/NewsRangesInput.php
+++ b/lib/classes/forms/NewsRangesInput.php
@@ -59,7 +59,7 @@ class NewsRangesInput extends Input
             foreach (\Institute::getMyInstitutes() as $institut) {
                 $inst_options[] = [
                     'value' => $institut['Institut_id'] . '__institute',
-                    'name'  => $institut['Name'],
+                    'name'  => (string) $institut['Name'],
                 ];
             }
             if (count($inst_options)) {
@@ -73,7 +73,7 @@ class NewsRangesInput extends Input
             foreach (\Course::findByUser(\User::findCurrent()->id) as $course) {
                 $course_options[] = [
                     'value' => $course->getId()."__seminar",
-                    'name' => $course['name']
+                    'name' => (string) $course['name']
                 ];
             }
             if (count($course_options)) {