summaryrefslogtreecommitdiffstats
path: root/apps/contacts/import.php
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-05-03 14:55:48 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-05-03 16:01:40 +0200
commit5be9084c73a0ae4e04b2c85cca5b8fe7c98d3ebb (patch)
treedd4a0be65831e2e9dd69ce7ede931aaf59d58b95 /apps/contacts/import.php
parentcbee0d31286ce9117f84fab4570b2d56292f4b98 (diff)
downloadnextcloud-server-5be9084c73a0ae4e04b2c85cca5b8fe7c98d3ebb.tar.gz
nextcloud-server-5be9084c73a0ae4e04b2c85cca5b8fe7c98d3ebb.zip
Contacts: Fixed paths in import.
Diffstat (limited to 'apps/contacts/import.php')
-rwxr-xr-xapps/contacts/import.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/contacts/import.php b/apps/contacts/import.php
index 346db5924c6..2386a1cff98 100755
--- a/apps/contacts/import.php
+++ b/apps/contacts/import.php
@@ -28,7 +28,7 @@ if(!$file) {
OCP\JSON::error(array('message' => 'Import file was empty.'));
exit();
}
-error_log('File: '.$file);
+
if(isset($_POST['method']) && $_POST['method'] == 'new'){
$id = OC_Contacts_Addressbook::add(OCP\USER::getUser(), $_POST['addressbookname']);
OC_Contacts_Addressbook::setActive($id, 1);