Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
PHP8에서 Warning: Undefined variable $extensions 오류 나오지 않도록 수정 (다온테마님,2…
…10806)
  • Loading branch information
kagla committed Aug 9, 2021
1 parent c024c75 commit e3bfefa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thumbnail.lib.php
Expand Up @@ -108,7 +108,7 @@ function get_view_thumbnail($contents, $thumb_width=0)
if(empty($matches))
return $contents;

// $extensions = array(1=>'gif', 2=>'jpg', 3=>'png', 18=>'webp');
$extensions = array(1=>'gif', 2=>'jpg', 3=>'png', 18=>'webp');

for($i=0; $i<count($matches[1]); $i++) {

Expand Down

0 comments on commit e3bfefa

Please sign in to comment.