Skip to content

Commit

Permalink
Merge pull request #72 from shophelfer/bugfixes
Browse files Browse the repository at this point in the history
Fixed non-numeric bug at image manipulator
  • Loading branch information
damilakovic authored Oct 30, 2017
2 parents 927af1d + b69a83c commit 00a1bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/includes/classes/image_manipulator_GD2.php
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ function drop_shadow($shadow_width, $shadow_colour="000000", $background_colour=
$this->dotc = @ImageColorAllocate($this->dot, $this->sr, $this->sg, $this->sb);
$this->v = @imagecreatetruecolor($this->q, $this->r);
$this->sbc = @imagecolorallocate($this->v, $this->sbrr, $this->sbrg, $this->sbrb);
$this->rsw = $this->q-$this->sw;
$this->rsh = $this->r-$this->sw;
$this->rsw = floatval($this->q)-floatval($this->sw);
$this->rsh = floatval($this->r)-floatval($this->sw);
@imagefill($this->v, 0, 0, $this->sbc);
for($this->sws = 0; $this->sws < $this->sw; $this->sws++)
{
Expand Down

0 comments on commit 00a1bbb

Please sign in to comment.