Skip to content

Commit cfc979a

Browse files
authored
Merge pull request #17432 from oolivero45/patch-1
Fixed #17431: EULA not displaying on asset acceptance page
2 parents d7407d7 + 553ab88 commit cfc979a

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
@@ -1031,9 +1031,9 @@ public function getEula()
10311031
{
10321032

10331033
if (($this->model) && ($this->model->category)) {
1034-
if (($this->model->category->eula_text) && ($this->model->category->use_default_eula === 0)) {
1034+
if (($this->model->category->eula_text) && ($this->model->category->use_default_eula == 0)) {
10351035
return Helper::parseEscapedMarkedown($this->model->category->eula_text);
1036-
} elseif ($this->model->category->use_default_eula === 1) {
1036+
} elseif ($this->model->category->use_default_eula == 1) {
10371037
return Helper::parseEscapedMarkedown(Setting::getSettings()->default_eula_text);
10381038
} else {
10391039

0 commit comments

Comments
 (0)