Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
esyede authored Nov 12, 2022
1 parent f8f4781 commit 82036b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/hcaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected static function build(array $attributes)
{
$attributes = array_filter($attributes);
$attributes['data-sitekey'] = Config::get('hcaptcha::main.sitekey');
$attributes['class'] = str_replace('h-captcha', '', isset_or($attributes['class'], ''));
$attributes['class'] = str_replace('h-captcha', '', isset($attributes['class']) ? $attributes['class'] : '');
$attributes['class'] = trim('h-captcha '.$attributes['class']);
$html = [];

Expand Down

0 comments on commit 82036b4

Please sign in to comment.