Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Commit

Permalink
Show no title if it is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
flamerohr committed Oct 20, 2015
1 parent 67b7f98 commit 4babb13
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/RecaptchaField.php
Expand Up @@ -82,6 +82,11 @@ class RecaptchaField extends FormField {

function __construct($name, $title = null, $value = null) {
parent::__construct($name, $title, $value);

// do not need a fallback title if none was defined.
if (empty($title)) {
$this->title = '';
}
}

public function Field($properties=array()) {
Expand Down

0 comments on commit 4babb13

Please sign in to comment.