Skip to content
Snippets Groups Projects
Commit 746eef0d authored by Thomas Tanghus's avatar Thomas Tanghus
Browse files

Format error response correctly.

parent 0045e640
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment