mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Optimized Userfield save event handling (fixes #2458)
This commit is contained in:
@@ -80,7 +80,6 @@ class FilesService extends BaseService
|
||||
if (file_exists($filePath))
|
||||
{
|
||||
$fileNameWithoutExtension = pathinfo($filePath, PATHINFO_FILENAME);
|
||||
$fileExtension = pathinfo($filePath, PATHINFO_EXTENSION);
|
||||
|
||||
// Then the file is an image
|
||||
if (getimagesize($filePath) !== false)
|
||||
|
Reference in New Issue
Block a user