Format error response correctly.

This commit is contained in:
Thomas Tanghus 2012-07-08 14:31:40 +02:00
parent 0045e64041
commit 746eef0d5c
1 changed files with 1 additions and 1 deletions

View 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){