Skip to content

Commit

Permalink
Merge pull request #33 from fritzmg/fix-title-logic
Browse files Browse the repository at this point in the history
Fix title logic
  • Loading branch information
MDevster authored Apr 11, 2023
2 parents 42b691b + 5495ce7 commit 711f7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/contao/forms/FormQuestionWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function __get($strKey)
break;

case 'showTitle':
return false === $this->hidetitle;
return !$this->hidetitle;
break;

case 'help':
Expand All @@ -161,7 +161,7 @@ public function generate()

public function hasLabel()
{
if ('' === $this->title || false === $this->showTitle) {
if ('' === $this->title || $this->showTitle) {
return false;
}

Expand Down

0 comments on commit 711f7d2

Please sign in to comment.