Browse Source

Update Files.php

Visman 2 năm trước cách đây
mục cha
commit
f9de698fbd
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  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;
             }
         }