Skip to content

Commit

Permalink
Merge pull request #1 from philo85/patch-1
Browse files Browse the repository at this point in the history
Fix PHPThumb.php
  • Loading branch information
hkvstore authored May 19, 2020
2 parents e01832b + 5a6d041 commit 400c422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PHPThumb/PHPThumb.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ public function __construct($fileName, array $options = array(), array $plugins

$this->plugins = array();

if (is_array(plugins)) {
$cnt = count(plugins);
if (is_array($plugins)) {
$cnt = count($plugins);
for ($i = 0; $i < $cnt; $i++) {
if ($plugins[$i] instanceof \PHPThumb\PluginInterface)
$this->$plugins[] = $plugins[$i];
Expand Down

0 comments on commit 400c422

Please sign in to comment.