summaryrefslogtreecommitdiffstats
path: root/lib/private/avatar.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/avatar.php')
-rw-r--r--lib/private/avatar.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/avatar.php b/lib/private/avatar.php
index e82e517b091..814a9b22bed 100644
--- a/lib/private/avatar.php
+++ b/lib/private/avatar.php
@@ -54,7 +54,9 @@ class OC_Avatar implements \OCP\IAvatar {
$img = new OC_Image($data);
$type = substr($img->mimeType(), -3);
- if ($type === 'peg') { $type = 'jpg'; }
+ if ($type === 'peg') {
+ $type = 'jpg';
+ }
if ($type !== 'jpg' && $type !== 'png') {
$l = \OC_L10N::get('lib');
throw new \Exception($l->t("Unknown filetype"));