Explorar o código

Update Files.php

Visman %!s(int64=2) %!d(string=hai) anos
pai
achega
f9de698fbd
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  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;
             }
         }