diff --git a/src/PHPThumb/PHPThumb.php b/src/PHPThumb/PHPThumb.php index 34e34a7..d421e4d 100644 --- a/src/PHPThumb/PHPThumb.php +++ b/src/PHPThumb/PHPThumb.php @@ -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];