summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/contacts/ajax/uploadphoto.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/contacts/ajax/uploadphoto.php b/apps/contacts/ajax/uploadphoto.php
index 4cd38db8c72..7ec82603b4a 100644
--- a/apps/contacts/ajax/uploadphoto.php
+++ b/apps/contacts/ajax/uploadphoto.php
@@ -50,9 +50,9 @@ if ($fn) {
if(OC_Cache::set($tmpkey, $image->data(), 600)) {
OCP\JSON::success(array(
'data' => array(
- 'mime'=>$_SERVER['CONTENT_TYPE'],
- 'name'=>$fn,
- 'id'=>$id,
+ 'mime'=>$_SERVER['CONTENT_TYPE'],
+ 'name'=>$fn,
+ 'id'=>$id,
'tmp'=>$tmpkey)));
exit();
} else {
@@ -100,8 +100,8 @@ if(file_exists($file['tmp_name'])) {
'data' => array(
'mime'=>$file['type'],
'size'=>$file['size'],
- 'name'=>$file['name'],
- 'id'=>$_POST['id'],
+ 'name'=>$file['name'],
+ 'id'=>$_POST['id'],
'tmp'=>$tmpkey,
)));
exit();