1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-01 11:50:28 +02:00
This commit is contained in:
trendschau
2022-01-09 00:15:57 +01:00
3 changed files with 4 additions and 5 deletions

View File

@@ -105,8 +105,7 @@ class ProcessAssets
public function setFileName($originalname, $type, $overwrite = NULL)
{
$pathinfo = pathinfo($originalname);
$this->extension = strtolower($pathinfo['extension']);
$this->extension = isset($pathinfo['extension']) ? strtolower($pathinfo['extension']) : null;
$this->filename = Folder::createSlug($pathinfo['filename']);
$filename = $this->filename;