Skip to content

Commit 7f38fb7

Browse files
committed
allow uploading images without thumbnails
1 parent d5a9bfd commit 7f38fb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileApi.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ public function get($filename, $size = self::SIZE_LARGE)
7777
}
7878
}
7979

80-
public function thumbs($thumb_sizes = array())
80+
public function thumbs($thumb_sizes = null)
8181
{
82-
if (!empty($thumb_sizes)) {
82+
if (!is_null($thumb_sizes)) {
8383
$this->thumb_sizes = $thumb_sizes;
8484
}
8585

0 commit comments

Comments
 (0)