浏览代码

Update Files.php

Visman 2 年之前
父节点
当前提交
f9de698fbd
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Core/Files.php

+ 3 - 3
app/Core/Files.php

@@ -894,10 +894,10 @@ class Files
         }
 
         foreach ($this->imageDrivers as $class) {
-            $this->imageDriver = new $class($this);
+            $driver = new $class($this);
 
-            if (true === $this->imageDriver->ready()) {
-                return $this->imageDriver;
+            if (true === $driver->ready()) {
+                return $this->imageDriver = $driver;
             }
         }