Skip to content

Commit 553ab88

Browse files
authored
Fix #17431: EULA not displaying on asset acceptance page
Changed two instances of === to ==, as this was causing a comparison to fail and preventing EULAs from being displayed on asset acceptance pages as expected.
1 parent 0c34073 commit 553ab88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/Models/Asset.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,9 +992,9 @@ public function getEula()
992992
{
993993

994994
if (($this->model) && ($this->model->category)) {
995-
if (($this->model->category->eula_text) && ($this->model->category->use_default_eula === 0)) {
995+
if (($this->model->category->eula_text) && ($this->model->category->use_default_eula == 0)) {
996996
return Helper::parseEscapedMarkedown($this->model->category->eula_text);
997-
} elseif ($this->model->category->use_default_eula === 1) {
997+
} elseif ($this->model->category->use_default_eula == 1) {
998998
return Helper::parseEscapedMarkedown(Setting::getSettings()->default_eula_text);
999999
} else {
10001000

0 commit comments

Comments
 (0)