Skip to content

Commit

Permalink
allow uploading images without thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
streamtw committed Nov 14, 2017
1 parent d5a9bfd commit 7f38fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FileApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ public function get($filename, $size = self::SIZE_LARGE)
}
}

public function thumbs($thumb_sizes = array())
public function thumbs($thumb_sizes = null)
{
if (!empty($thumb_sizes)) {
if (!is_null($thumb_sizes)) {
$this->thumb_sizes = $thumb_sizes;
}

Expand Down

0 comments on commit 7f38fb7

Please sign in to comment.