From 9e589aafbd50786ba76f9a7730bdd0422345d52c Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Wed, 18 May 2022 14:21:19 +0000 Subject: [PATCH] cast institute name to string Closes #1076 Merge request studip/studip!643 --- lib/classes/JsonApi/Schemas/Institute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/JsonApi/Schemas/Institute.php b/lib/classes/JsonApi/Schemas/Institute.php index bc3c2e27f44..b86d2ff79dc 100644 --- a/lib/classes/JsonApi/Schemas/Institute.php +++ b/lib/classes/JsonApi/Schemas/Institute.php @@ -23,7 +23,7 @@ class Institute extends SchemaProvider public function getAttributes($institute) { return [ - 'name' => $institute['Name'], + 'name' => (string) $institute['Name'], 'city' => $institute['Plz'], 'street' => $institute['Strasse'], 'phone' => $institute['telefon'], -- GitLab