dever 6 năm trước cách đây
mục cha
commit
a1c360fcfe
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/Store/Core.php

+ 1 - 2
src/Store/Core.php

@@ -305,8 +305,7 @@ class Core
 	{
 		if (isset($this->data['file']['type'])) {
 			$ext = $this->getExtByMine($this->data['file']['type']);
-		}
-		if (function_exists('finfo_open')) {
+		} elseif (function_exists('finfo_open')) {
 			$finfo = finfo_open(FILEINFO_MIME); // 返回 mime 类型
 			$code = finfo_file($finfo, $filename);
 			finfo_close($finfo);