Browse Source

Update Files.php

Visman 2 years ago
parent
commit
f9de698fbd
1 changed files with 3 additions and 3 deletions
  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;
             }
         }