]> source.dussan.org Git - nextcloud-server.git/commitdiff
Format error response correctly.
authorThomas Tanghus <thomas@tanghus.net>
Sun, 8 Jul 2012 12:31:40 +0000 (14:31 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Sun, 8 Jul 2012 12:31:40 +0000 (14:31 +0200)
apps/contacts/import.php

index 1a07781b9d0db99ec287a5ba64b97a26d357db6b..3891a6d7422f5305bcd1e3ab670227a5fe2a0876 100644 (file)
@@ -108,7 +108,7 @@ if(count($parts) == 1){
 $imported = 0;
 $failed = 0;
 if(!count($importready) > 0) {
-       OCP\JSON::error(array('message' => 'No contacts to import in .'.$_POST['file'].' Please check if the file is corrupted.'));
+       OCP\JSON::error(array('data' => (array('message' => 'No contacts to import in .'.$_POST['file'].' Please check if the file is corrupted.')));
        exit();
 }
 foreach($importready as $import){