Skip to content

Commit

Permalink
checks if output path is set.
Browse files Browse the repository at this point in the history
  • Loading branch information
kiproping committed Mar 31, 2018
1 parent 6c73875 commit 446cfb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pslayers.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function render()
$this->masterCanvas->compositeImage($layer->render(), $layer->composite, $layer->positionX, $layer->positionY);
}

if ($this->config->outputPath !== null) {
if (isset($this->config->outputPath) && $this->config->outputPath !== null) {
$this->masterCanvas->writeImage($this->config->outputPath);
}

Expand Down

0 comments on commit 446cfb8

Please sign in to comment.