OCP\JSON::error(array('data' => array('message' => 'Error getting the ID of the address book.')));
OCP\JSON::error(array('data' => array('message' => 'Error getting the ID of the address book.', 'file'=>$_POST['file'])));
exit();
exit();
}
}
OC_Contacts_App::getAddressbook($id); // is owner access check
OC_Contacts_App::getAddressbook($id); // is owner access check
@ -79,7 +79,7 @@ writeProgress('70');
$imported = 0;
$imported = 0;
$failed = 0;
$failed = 0;
if(!count($parts) > 0) {
if(!count($parts) > 0) {
OCP\JSON::error(array('data' => 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.', 'file'=>$_POST['file'])));