PHP8에서 Warning: Undefined variable $extensions 오류 나오지 않도록 수정 (다온테마님,210806)
This commit is contained in:
@ -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++) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user