Skip to content

Commit ff69cc4

Browse files
trashercedric-anne
andauthored
Update src/User.php
Co-authored-by: Cédric Anne <[email protected]>
1 parent e611b26 commit ff69cc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ public function prepareInputForUpdate($input)
10701070
$extension = in_array($extension, ['png', 'gif']) ? 'png' : 'jpg';
10711071

10721072
if (!file_exists(GLPI_PICTURE_DIR . "/$sub")) {
1073-
@mkdir(GLPI_PICTURE_DIR . "/$sub");
1073+
mkdir(GLPI_PICTURE_DIR . "/$sub");
10741074
}
10751075
$picture_path = GLPI_PICTURE_DIR . "/{$sub}/{$filename}.{$extension}";
10761076
self::dropPictureFiles("{$sub}/{$filename}.{$extension}");

0 commit comments

Comments
 (0)