diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-04 21:22:36 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-09-04 21:22:36 +0200 |
commit | 68dce9dde569a039da68cd2c1244ca89984aba34 (patch) | |
tree | 1bd5022e98632075072d817c7056b9f62121ae43 /core/avatar | |
parent | fca5db748be0f0f6614f95721479ad57b521efb3 (diff) | |
download | nextcloud-server-68dce9dde569a039da68cd2c1244ca89984aba34.tar.gz nextcloud-server-68dce9dde569a039da68cd2c1244ca89984aba34.zip |
fixing style, var name & PHPDoc
Diffstat (limited to 'core/avatar')
-rw-r--r-- | core/avatar/controller.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php index 5264327b641..50ec50f19a5 100644 --- a/core/avatar/controller.php +++ b/core/avatar/controller.php @@ -72,12 +72,14 @@ class OC_Core_Avatar_Controller { } else { $l = new \OC_L10n('core'); $type = substr($image->mimeType(), -3); - if ($type === 'peg') { $type = 'jpg'; } + if ($type === 'peg') { + $type = 'jpg'; + } if ($type !== 'jpg' && $type !== 'png') { \OC_JSON::error(array("data" => array("message" => $l->t("Unknown filetype")) )); } - if (!$img->valid()) { + if (!$image->valid()) { \OC_JSON::error(array("data" => array("message" => $l->t("Invalid image")) )); } } |