Fix incorrect background dynamic property in captcha library
This commit is contained in:
parent
cbc76852f3
commit
ad01710ce6
|
|
@ -427,7 +427,7 @@ class CaptchaBuilder implements CaptchaBuilderInterface
|
|||
$color = $this->backgroundColor;
|
||||
$bg = imagecolorallocate($image, $color[0], $color[1], $color[2]);
|
||||
}
|
||||
$this->background = $bg;
|
||||
$this->backgroundColor = $bg;
|
||||
imagefill($image, 0, 0, $bg);
|
||||
} else {
|
||||
// use a random background image
|
||||
|
|
|
|||
Loading…
Reference in New Issue