From 5312cfa1d8fa6b0ae43bf8199baf50cffe02af1c Mon Sep 17 00:00:00 2001 From: Brent Cordis Date: Thu, 26 Sep 2024 15:32:15 -0500 Subject: [PATCH] Update user function and see if that fixes the error. Also clean up some functions. --- site/src/Helper/Cwmlanding.php | 73 ++++++++++++++++------------------ 1 file changed, 35 insertions(+), 38 deletions(-) diff --git a/site/src/Helper/Cwmlanding.php b/site/src/Helper/Cwmlanding.php index c9a5a4e96..d4a9656eb 100644 --- a/site/src/Helper/Cwmlanding.php +++ b/site/src/Helper/Cwmlanding.php @@ -156,7 +156,7 @@ public function getLocationsLandingPage(Registry $params, int $id = 0): string $location = '
'; foreach ($tresult as $b) { - if ($b->landing_show == 1) { + if ((int) $b->landing_show === 1) { $location .= '
'; $location .= '
'; - if ($params->get('linkto') == 0) { + if ((int) $params->get('linkto') === 0) { $teacher .= ''; } else { $teacher .= ''; + 'index.php?option=com_proclaim&view=cwmteacher&id=' . $b->id . $langlink . '&t=' . $template + ) . '">'; } $teacher .= $b->teachername; @@ -326,8 +326,8 @@ public function getTeacherLandingPage(Registry $params, int $id = 0): string case 1: foreach ($tresult as $b) { - if ($b->landing_show == 1) { - if ($params->get('linkto') == 0) { + if ($b->landing_show === 1) { + if ((int) $params->get('linkto') === 0) { $teacher .= '
id @@ -347,8 +347,8 @@ public function getTeacherLandingPage(Registry $params, int $id = 0): string $teacher .= '