PHP8에서 Warning: Undefined variable $extensions 오류 나오지 않도록 수정 (다온테마님,210806)

This commit is contained in:
kagla
2021-08-09 07:15:28 +00:00
parent c024c7552b
commit e3bfefab55

View File

@ -108,7 +108,7 @@ function get_view_thumbnail($contents, $thumb_width=0)
if(empty($matches)) if(empty($matches))
return $contents; 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++) { for($i=0; $i<count($matches[1]); $i++) {