|
|
@ -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.'))); |
|
|
|
exit(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
} |
|
|
|
foreach($parts as $part){ |
|
|
|
foreach($parts as $part){ |
|
|
|