From 85e094ea762675a3f3cda83bdedc3ca6b437665e Mon Sep 17 00:00:00 2001 From: Moritz Strohm Date: Thu, 4 Jul 2024 11:29:05 +0200 Subject: fixed error --- app/controllers/course/lti.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/course/lti.php b/app/controllers/course/lti.php index 55dc799..b776876 100644 --- a/app/controllers/course/lti.php +++ b/app/controllers/course/lti.php @@ -200,11 +200,11 @@ class Course_LtiController extends StudipController */ public function iframe_action(string $deployment_id) { - $show_data_protection_info = !LtiDeploymentPrivacySettings::countBySQL( + $this->show_data_protection_info = !LtiDeploymentPrivacySettings::countBySQL( "`deployment_id` = :deployment_id AND `user_id` = :user_id AND `accepted` = '1'", ['deployment_id' => $deployment_id, 'user_id' => $GLOBALS['user']->id] ); - if ($show_data_protection_info) { + if ($this->show_data_protection_info) { $this->redirect('course/lti/consent/' . $deployment_id, ['redirect_to_tool' => '1']); return; } -- cgit v1.0