Skip to content

Commit

Permalink
Merge pull request #76 from didatus/master
Browse files Browse the repository at this point in the history
bugfix for linecolor
  • Loading branch information
Gregwar authored Mar 24, 2020
2 parents 218c5f7 + a84b5b4 commit 4bb668e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Gregwar/Captcha/CaptchaBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ public function setBackgroundImages(array $backgroundImages)
protected function drawLine($image, $width, $height, $tcol = null)
{
if ($this->lineColor === null) {
$red = $this->lineColor[0];
$green = $this->lineColor[1];
$blue = $this->lineColor[2];
} else {
$red = $this->rand(100, 255);
$green = $this->rand(100, 255);
$blue = $this->rand(100, 255);
} else {
$red = $this->lineColor[0];
$green = $this->lineColor[1];
$blue = $this->lineColor[2];
}

if ($tcol === null) {
Expand Down

0 comments on commit 4bb668e

Please sign in to comment.