mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-19 08:52:22 +01:00
Format error response correctly.
This commit is contained in:
parent
97bcb934ad
commit
53997850bc
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user