From 46d7f6b5a0ee5276d7fd64b5463da977c321d307 Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Mon, 3 Jun 2024 12:08:10 +0000 Subject: [PATCH] fixes #4252 Closes #4252 Merge request studip/studip!3083 --- app/controllers/profile.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/profile.php b/app/controllers/profile.php index 7738bb3323a..72a500e20d2 100644 --- a/app/controllers/profile.php +++ b/app/controllers/profile.php @@ -659,12 +659,8 @@ class ProfileController extends AuthenticatedController /** * Returns the visibility value - * - * @param string $param - * @param string $visibility - * @return string|bool */ - private function getVisibilityValue(string $param, string $visibility = ''): string|bool + private function getVisibilityValue(string $param, string $visibility = ''): mixed { if (Visibility::verify($visibility ?: $param, $this->current_user->user_id)) { return $this->current_user->$param; -- GitLab