Fix filesystem wrong method call

The proper method is `exists`, not `has`.
This commit is contained in:
Alexander Skvortsov 2021-05-17 18:04:08 -04:00
parent be7581c432
commit a5182a1454

View File

@ -68,7 +68,7 @@ abstract class UploadImageController extends ShowForumController
$encodedImage = $this->makeImage($file);
if (($path = $this->settings->get($this->filePathSettingKey)) && $this->uploadDir->has($path)) {
if (($path = $this->settings->get($this->filePathSettingKey)) && $this->uploadDir->exists($path)) {
$this->uploadDir->delete($path);
}